Class GridIndexResolver
Represents an extension class that provides resolving methods for a SfDataGrid control.
Inheritance
Namespace: Syncfusion.Maui.DataGrid.Helper
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public static class GridIndexResolver : Object
Methods
GetHeaderIndex(SfDataGrid)
Gets the header index in a SfDataGrid control.
Declaration
public static int GetHeaderIndex(this SfDataGrid dataGrid)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | The reference of the SfDataGrid. |
Returns
Type | Description |
---|---|
System.Int32 | The header index of the SfDataGrid. |
GetUnboundRowAtRowIndex(SfDataGrid, Int32)
Declaration
public static DataGridUnboundRow GetUnboundRowAtRowIndex(this SfDataGrid dataGrid, int rowIndex)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | |
System.Int32 | rowIndex |
Returns
Type |
---|
DataGridUnboundRow |
GetUnboundRowsCount(SfDataGrid, DataGridUnboundRowPosition, Boolean)
Declaration
public static int GetUnboundRowsCount(this SfDataGrid dataGrid, DataGridUnboundRowPosition position, bool belowSummary = false)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | |
DataGridUnboundRowPosition | position | |
System.Boolean | belowSummary |
Returns
Type |
---|
System.Int32 |
IsUnboundRow(SfDataGrid, Int32)
to do
Declaration
public static bool IsUnboundRow(this SfDataGrid dataGrid, int rowIndex)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | |
System.Int32 | rowIndex |
Returns
Type |
---|
System.Boolean |
ResolveStartIndexBasedOnPosition(SfDataGrid)
Gets the resolved start index based on the position of SfDataGrid control.
Declaration
public static int ResolveStartIndexBasedOnPosition(this SfDataGrid dataGrid)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | The reference of the SfDataGrid. |
Returns
Type | Description |
---|---|
System.Int32 | The resolved start index based on the position of the SfDataGrid. |
ResolveStartIndexOfGroup(SfDataGrid, Group)
Resolves the start index of the specified group.
Declaration
public static int ResolveStartIndexOfGroup(this SfDataGrid dataGrid, Group group)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | The reference of the SfDataGrid. |
Group | group | Specifies the group to get its corresponding start index. |
Returns
Type | Description |
---|---|
System.Int32 | The start index of the specified group; returns -1; if the column is not grouped in SfDataGrid. |
ResolveToGridVisibleColumnIndex(SfDataGrid, Int32)
Gets the resolved visible column index for the given column index.
Declaration
public static int ResolveToGridVisibleColumnIndex(this SfDataGrid dataGrid, int columnIndex)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | The reference of the SfDataGrid. |
System.Int32 | columnIndex | The column index whose visible column index is to be determined. |
Returns
Type | Description |
---|---|
System.Int32 | The resolved visible column index for the given column index. |
ResolveToRecordIndex(SfDataGrid, Int32)
Gets the resolved record index for the given row index.
Declaration
public static int ResolveToRecordIndex(this SfDataGrid dataGrid, int rowIndex)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | The reference of the SfDataGrid. |
System.Int32 | rowIndex | The index of the row. |
Returns
Type | Description |
---|---|
System.Int32 | The resolved record index of the given row index. |
ResolveToRowIndex(SfDataGrid, Int32)
Gets the resolved row index for the given record index.
Declaration
public static int ResolveToRowIndex(this SfDataGrid dataGrid, int recordIndex)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | The reference of the SfDataGrid. |
System.Int32 | recordIndex | The record index whose row index is to be obtained. |
Returns
Type | Description |
---|---|
System.Int32 | The resolved row index form the given record index. |
ResolveToScrollColumnIndex(SfDataGrid, Int32)
Gets the resolved scroll column index for the given column index.
Declaration
public static int ResolveToScrollColumnIndex(this SfDataGrid dataGrid, int gridColumnIndex)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | The reference of the SfDataGrid. |
System.Int32 | gridColumnIndex | The column index which is to be resolved to the scroll column index. |
Returns
Type | Description |
---|---|
System.Int32 | The resolved scroll column index for the given column index. |
ResolveToStartColumnIndex(SfDataGrid)
Gets the resolved start column index in a SfDataGrid control.
Declaration
public static int ResolveToStartColumnIndex(this SfDataGrid dataGrid)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | The reference of the SfDataGrid. |
Returns
Type | Description |
---|---|
System.Int32 | The resolved start column index of the SfDataGrid. |
ResolveToStartRowIndex(SfDataGrid)
Gets the resolved start index based on the position of SfDataGrid control.
Declaration
public static int ResolveToStartRowIndex(this SfDataGrid dataGrid)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | The reference of the SfDataGrid. |
Returns
Type | Description |
---|---|
System.Int32 | The resolved start index based on the position of the SfDataGrid. |
ResolveUnboundRowToRowIndex(SfDataGrid, DataGridUnboundRow)
Declaration
public static int ResolveUnboundRowToRowIndex(this SfDataGrid dataGrid, DataGridUnboundRow unboundRow)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | |
DataGridUnboundRow | unboundRow |
Returns
Type |
---|
System.Int32 |