menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HeaderContextInfo - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class HeaderContextInfo

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

    Inheritance
    System.Object
    HeaderContextInfo
    Namespace: Syncfusion.Maui.DataGrid
    Assembly: Syncfusion.Maui.DataGrid.dll
    Syntax
    public class HeaderContextInfo : Object
    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, Int32, Int32, 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.

    System.Int32 rowIndex

    The row index associated with the context menu operation.

    System.Int32 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
    System.Int32

    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
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved