alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class TreeGridIndexResolver

    Provides extension methods for resolving indices in the SfTreeGrid control.

    Inheritance
    System.Object
    TreeGridIndexResolver
    Namespace: Syncfusion.Maui.TreeGrid
    Assembly: Syncfusion.Maui.TreeGrid.dll
    Syntax
    public static class TreeGridIndexResolver : Object

    Methods

    GetHeaderIndex(SfTreeGrid)

    Gets the zero-based index of the last header row in the specified tree grid.

    Declaration
    public static int GetHeaderIndex(this SfTreeGrid treeGrid)
    Parameters
    Type Name Description
    SfTreeGrid treeGrid

    The tree grid from which to retrieve the header index. Can be null.

    Returns
    Type Description
    System.Int32

    The zero-based index of the last header row if treeGrid is not null; otherwise, -1.

    GetNodeAtRowIndex(SfTreeGrid, Int32)

    Gets the node at the specified row index.

    Declaration
    public static TreeNode GetNodeAtRowIndex(this SfTreeGrid treeGrid, int rowIndex)
    Parameters
    Type Name Description
    SfTreeGrid treeGrid

    The SfTreeGrid.

    System.Int32 rowIndex

    The specified row index.

    Returns
    Type
    TreeNode

    ResolveToGridVisibleColumnIndex(SfTreeGrid, Int32)

    Resolves the zero-based grid-visible column index of the specified column index within the tree grid.

    Declaration
    public static int ResolveToGridVisibleColumnIndex(this SfTreeGrid treeGrid, int columnIndex)
    Parameters
    Type Name Description
    SfTreeGrid treeGrid

    The tree grid in which to locate the column. If null, the method returns 0.

    System.Int32 columnIndex

    The specified column index.

    Returns
    Type Description
    System.Int32

    The zero-based grid-visible column index of the specified column; or 0 if the tree grid is null.

    ResolveToNodeIndex(SfTreeGrid, Int32)

    Resolves the node index corresponding to the specified row index.

    Declaration
    public static int ResolveToNodeIndex(this SfTreeGrid treeGrid, int rowindex)
    Parameters
    Type Name Description
    SfTreeGrid treeGrid

    The SfTreeGrid.

    System.Int32 rowindex

    The corresponding row index.

    Returns
    Type Description
    System.Int32

    Returns the node index of the specified row index.

    ResolveToRowIndex(SfTreeGrid, TreeNode)

    Resolves the zero-based row index of the specified node within the tree grid, including any header rows.

    Declaration
    public static int ResolveToRowIndex(this SfTreeGrid treeGrid, TreeNode node)
    Parameters
    Type Name Description
    SfTreeGrid treeGrid

    The tree grid in which to locate the node. If null, the method returns -1.

    TreeNode node

    The node whose row index is to be determined.

    Returns
    Type Description
    System.Int32

    The zero-based row index of the specified node, including header rows; or -1 if the node is not found or if the tree grid is null.

    Remarks

    The returned index accounts for the number of header lines in the tree grid. Use this method to map a node to its corresponding row index as displayed in the grid, including headers.

    ResolveToRowIndex(SfTreeGrid, Int32)

    Resolves the zero-based row index of the specified node index within the tree grid, including any header rows.

    Declaration
    public static int ResolveToRowIndex(this SfTreeGrid treeGrid, int nodeIndex)
    Parameters
    Type Name Description
    SfTreeGrid treeGrid

    The tree grid in which to locate the node. If null, the method returns -1.

    System.Int32 nodeIndex

    The specified node index.

    Returns
    Type Description
    System.Int32

    The zero-based row index of the specified node, including header rows; or -1 if the node is not found or if the tree grid is null.

    ResolveToRowIndex(SfTreeGrid, Object)

    Resolves the row index corresponding to the specified data.

    Declaration
    public static int ResolveToRowIndex(this SfTreeGrid treeGrid, object data)
    Parameters
    Type Name Description
    SfTreeGrid treeGrid

    The SfTreeGrid.

    System.Object data

    Specifies the data to get its corresponding row index.

    Returns
    Type Description
    System.Int32

    Returns the row index of the specified data.

    ResolveToScrollColumnIndex(SfTreeGrid, Int32)

    Resolves the zero-based scrollable column index of the specified grid column index within the tree grid.

    Declaration
    public static int ResolveToScrollColumnIndex(this SfTreeGrid treeGrid, int gridColumnIndex)
    Parameters
    Type Name Description
    SfTreeGrid treeGrid
    System.Int32 gridColumnIndex
    Returns
    Type
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved