Class RowContextMenuInfo
Represents information about a row in the SfDataGrid, used for context menu operations.
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class RowContextMenuInfo
Remarks
This class provides contextual data for row-level interactions in the data grid. It includes the grid instance, row index, and the bound data item for the row. Useful for implementing row-specific logic such as editing, deleting, or custom actions.
Constructors
RowContextMenuInfo()
Initializes a new instance of the ContextMenuRowInfo class.
Declaration
public RowContextMenuInfo()
RowContextMenuInfo(SfDataGrid, int, object?)
Initializes a new instance of the ContextMenuRowInfo class with the specified data grid and index.
Declaration
public RowContextMenuInfo(SfDataGrid dataGrid, int rowIndex, object? rowData = null)
Parameters
| Type | Name | Description |
|---|---|---|
| SfDataGrid | dataGrid | The data grid associated with this row. |
| int | rowIndex | The row index of this row. |
| object | rowData | The data item for this row. |
Properties
DataGrid
Gets the instance of the SfDataGrid.
Declaration
public SfDataGrid? DataGrid { get; }
Property Value
| Type |
|---|
| SfDataGrid |
RowData
Gets the data item for this row.
Declaration
public object? RowData { get; }
Property Value
| Type |
|---|
| object |
RowIndex
Gets the row index of this row.
Declaration
public int RowIndex { get; }
Property Value
| Type |
|---|
| int |