alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class TreeGridCellInfo

    Represents a selected cell information in a SfTreeGrid when SelectionUnit is Cell.

    Inheritance
    object
    TreeGridCellInfo
    Implements
    IEquatable<TreeGridCellInfo>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Maui.TreeGrid
    Assembly: Syncfusion.Maui.TreeGrid.dll
    Syntax
    public class TreeGridCellInfo : IEquatable<TreeGridCellInfo?>
    Remarks

    Each instance represents a single selected cell, holding the column, the underlying data object of the row, the node entry and the row index of the cell, matching the SfDataGrid SelectedCellInfo behavior.

    Constructors

    TreeGridCellInfo(TreeGridColumn?, object?, TreeNode?, int)

    Initializes a new instance of the TreeGridCellInfo class.

    Declaration
    public TreeGridCellInfo(TreeGridColumn? column, object? rowData, TreeNode? nodeEntry, int rowIndex)
    Parameters
    Type Name Description
    TreeGridColumn column

    The column of the cell.

    object rowData

    The underlying data object of the row.

    TreeNode nodeEntry

    The node entry information.

    int rowIndex

    The row index of the cell.

    Properties

    Column

    Gets the TreeGridColumn that contains the selected cell.

    Declaration
    public TreeGridColumn? Column { get; }
    Property Value
    Type
    TreeGridColumn

    IsDataRow

    Gets a value indicating whether the selected cell is of a data row.

    Declaration
    public bool IsDataRow { get; }
    Property Value
    Type Description
    bool

    true if the selected cell is of a data row; otherwise, false.

    NodeEntry

    Gets the TreeNode information of the selected cell.

    Declaration
    public TreeNode? NodeEntry { get; }
    Property Value
    Type
    TreeNode

    RowData

    Gets the underlying data object of the row that contains the selected cell.

    Declaration
    public object? RowData { get; }
    Property Value
    Type
    object

    RowIndex

    Gets the corresponding row index of the selected cell.

    Declaration
    public int RowIndex { get; }
    Property Value
    Type
    int
    Remarks

    The row index is -1 when the record of the selected cell is under a collapsed parent node, since the record does not have a visible row index in that state.

    Methods

    Equals(TreeGridCellInfo?)

    Compares whether the current cell info is equal to the other cell info of the same type.

    Declaration
    public bool Equals(TreeGridCellInfo? other)
    Parameters
    Type Name Description
    TreeGridCellInfo other

    The cell info to compare with.

    Returns
    Type Description
    bool

    True if both cell infos are equal; otherwise, false.

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type
    bool
    Overrides
    object.Equals(object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type
    int
    Overrides
    object.GetHashCode()

    Implements

    IEquatable<T>
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved