menu

MAUI

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

    Show / Hide Table of Contents

    Class GridIndexResolver

    Represents an extension class that provides resolving methods for a SfDataGrid control.

    Inheritance
    System.Object
    GridIndexResolver
    Namespace: Syncfusion.Maui.DataGrid.Helper
    Assembly: Syncfusion.Maui.DataGrid.dll
    Syntax
    public static class GridIndexResolver : Object

    Methods

    GetDetailsViewRecord(SfDataGrid, DetailsViewDataGrid)

    Gets the record associated with the specified DetailsViewDataGrid.

    Declaration
    public static object GetDetailsViewRecord(this SfDataGrid dataGrid, DetailsViewDataGrid detailsViewDataGrid)
    Parameters
    Type Name Description
    SfDataGrid dataGrid

    Specifies the corresponding SfDataGrid.

    DetailsViewDataGrid detailsViewDataGrid

    Specifies the DetailsViewDataGrid to get its corresponding record entry.

    Returns
    Type Description
    System.Object

    The record associated with the specified DetailsViewDataGrid; returns null, if the DetailsViewDataGrid is null.

    Examples
    using Syncfusion.UI.Xaml.Grid;
    
    object record = dataGrid.GetGridDetailsViewRecord(DetailsViewDataGrid detailsViewDataGrid);

    GetDetailsViewRowIndex(SfDataGrid, DetailsViewDataGrid)

    Gets the row index of the specified DetailsViewDataGrid.

    Declaration
    public static int GetDetailsViewRowIndex(this SfDataGrid dataGrid, DetailsViewDataGrid detailsViewDataGrid)
    Parameters
    Type Name Description
    SfDataGrid dataGrid

    Specifies the corresponding SfDataGrid.

    DetailsViewDataGrid detailsViewDataGrid

    Specifies the DetailsViewDataGrid to get its corresponding row index.

    Returns
    Type Description
    System.Int32

    Returns the row index of the corresponding DetailsViewDataGrid.

    Examples
    using Syncfusion.Maui.DataGrid;
    
    int detailsViewRowIndex = dataGrid.GetGridDetailsViewRowIndex(DetailsViewDataGrid detailsViewDataGrid);

    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

    IsInDetailsViewIndex(SfDataGrid, Int32)

    Determines whether the specified row index is associated with DetailsViewDataRow.

    Declaration
    public static bool IsInDetailsViewIndex(this SfDataGrid dataGrid, int rowIdx)
    Parameters
    Type Name Description
    SfDataGrid dataGrid

    Specifies the corresponding SfDataGrid.

    System.Int32 rowIdx

    Specifies the corresponding row index to determine whether the row index is in DetailsViewDataRow.

    Returns
    Type Description
    System.Boolean

    Returns true if the specified row index is associated with DetailsViewDataRow; otherwise, false.

    Examples
    using Syncfusion.UI.Xaml.Grid;
    
    int rowIndex = 2;
    bool isInDetailsViewIndex = dataGrid.IsInDetailsViewIndex(rowIndex);

    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.

    ResolveToGroupRecordIndexForDetailsView(SfDataGrid, Int32)

    Resolves the group record index for the specified row index when the SfDataGrid has Details View.

    Declaration
    public static int ResolveToGroupRecordIndexForDetailsView(this SfDataGrid dataGrid, int rowIndex)
    Parameters
    Type Name Description
    SfDataGrid dataGrid

    Specifies the corresponding SfDataGrid.

    System.Int32 rowIndex

    Specifies the corresponding row index to get group index.

    Returns
    Type Description
    System.Int32

    Returns the group record index of the specified row index when the SfDataGrid has Details View.

    Examples
    using Syncfusion.UI.Xaml.Grid;
    
    int rowIndex = 2;
    int groupIndex = dataGrid.ResolveToGroupRecordIndexForDetailsView(rowIndex);

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