TreeList.GetRowCellValue(TreeListNode, String) Method
In This Article
Returns the value of the specified cell.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
#Declaration
public object GetRowCellValue(
TreeListNode node,
string fieldName
)
#Parameters
Name | Type | Description |
---|---|---|
node | Tree |
A node that contains the cell. |
field |
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