Class GroupCaptionContextInfo
Represents information about a group caption in the SfDataGrid, used for context menu operations.
Inheritance
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class GroupCaptionContextInfo : Object
Remarks
This class provides contextual data for group caption rows in the data grid. It includes the associated group and the row index, allowing developers to implement group-level actions such as collapsing, expanding, or applying filters based on group metadata.
Constructors
GroupCaptionContextInfo()
Initializes a new instance of the GroupCaptionContextInfo class.
Declaration
public GroupCaptionContextInfo()
GroupCaptionContextInfo(SfDataGrid, Group, Int32)
Initializes a new instance of the GroupCaptionContextInfo class with the specified parameters.
Declaration
public GroupCaptionContextInfo(SfDataGrid dataGrid, Group group, int rowIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| SfDataGrid | dataGrid | The data grid associated with this group caption. |
| Group | group | The group associated with this group caption. |
| System.Int32 | rowIndex | The row index of this group caption. |
Properties
DataGrid
Gets the instance of the SfDataGrid.
Declaration
public SfDataGrid DataGrid { get; }
Property Value
| Type |
|---|
| SfDataGrid |
Group
Gets the group associated with this group caption.
Declaration
public Group Group { get; }
Property Value
| Type |
|---|
| Group |
RowIndex
Gets the row index of this group caption.
Declaration
public int RowIndex { get; }
Property Value
| Type |
|---|
| System.Int32 |