alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class HeaderContextInfo

    Provides context information for header context menu operations in the SfDataGrid.

    Inheritance
    object
    HeaderContextInfo
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Maui.DataGrid
    Assembly: Syncfusion.Maui.DataGrid.dll
    Syntax
    public class HeaderContextInfo
    Remarks

    This class encapsulates metadata related to the grid's header region where a context menu is invoked. It includes row and column indices, the associated column, and the grid instance itself. Useful for implementing custom logic based on the header context.

    Constructors

    HeaderContextInfo(SfDataGrid, int, int, DataGridColumn?)

    Initializes a new instance of the HeaderContextInfo class.

    Declaration
    public HeaderContextInfo(SfDataGrid dataGrid, int rowIndex, int columnIndex, DataGridColumn? column)
    Parameters
    Type Name Description
    SfDataGrid dataGrid

    The SfDataGrid instance.

    int rowIndex

    The row index associated with the context menu operation.

    int columnIndex

    The column index associated with the context menu operation.

    DataGridColumn column

    The column associated with the header context menu.

    Properties

    Column

    Gets the column associated with the header context menu.

    Declaration
    public DataGridColumn? Column { get; }
    Property Value
    Type
    DataGridColumn

    ColumnIndex

    Gets the column index associated with the context menu operation.

    Declaration
    public int ColumnIndex { get; }
    Property Value
    Type
    int

    DataGrid

    Gets the instance of the SfDataGrid.

    Declaration
    public SfDataGrid DataGrid { get; }
    Property Value
    Type
    SfDataGrid

    RowIndex

    Gets the row index associated with the context menu operation.

    Declaration
    public int RowIndex { get; }
    Property Value
    Type
    int
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved