Back to Devexpress

TreeList.GetRowCellValue(TreeListNode, String) Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-dot-getrowcellvalue-x28-devexpress-dot-xtratreelist-dot-nodes-dot-treelistnode-system-dot-string-x29.md

latest2.6 KB
Original Source

TreeList.GetRowCellValue(TreeListNode, String) Method

Returns the value of the specified cell.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public object GetRowCellValue(
    TreeListNode node,
    string fieldName
)
vb
Public Function GetRowCellValue(
    node As TreeListNode,
    fieldName As String
) As Object

Parameters

NameTypeDescription
nodeTreeListNode

A node that contains the cell.

| | fieldName | String |

The field name of a column that contains the cell.

|

Returns

TypeDescription
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

Obtaining and Setting Cell Values

GetRowCellDisplayText

GetFocusedRowCellValue

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace