Skip to main content
All docs
V25.1
  • TreeList.GetRowCellValue(TreeListNode, String) Method

    Returns the value of the specified cell.

    Namespace: DevExpress.XtraTreeList

    Assembly: DevExpress.XtraTreeList.v25.1.dll

    NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

    Declaration

    public object GetRowCellValue(
        TreeListNode node,
        string fieldName
    )

    Parameters

    Name Type Description
    node TreeListNode

    A node that contains the cell.

    fieldName String

    The field name of a column that contains the cell.

    Returns

    Type Description
    Object

    An object that specifies the cell’s value. null (Nothing in Visual Basic) if the specified cell was not found.

    Remarks

    The GetRowCellValue method returns null (Nothing in Visual Basic) in the following cases:

    • The specified node does not exist.
    • The specified field does not exist in the data source.

    Use the GetRowCellDisplayText method to get a cell’s display value/text.

    Read the following topic to learn more: Obtaining and Setting Cell Values.

    See Also