Back to Devexpress

VirtualTreeGetCellValueInfo.CellData Property

windowsforms-devexpress-dot-xtratreelist-dot-virtualtreegetcellvalueinfo-70fccf01.md

latest5.8 KB
Original Source

VirtualTreeGetCellValueInfo.CellData Property

Gets or sets the current cell value (when VirtualTreeGetCellValueInfo.IsCheckState is false ) or the node’s check state (when VirtualTreeGetCellValueInfo.IsCheckState is true ).

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public object CellData { get; set; }
vb
Public Property CellData As Object

Property Value

TypeDescription
Object

Initially this property is set to a null reference. Use this property to supply data for the current cell or provide the node check state.

|

Remarks

Use this property to supply a cell value (when VirtualTreeGetCellValueInfo.IsCheckState is false ) or the node check state (when VirtualTreeGetCellValueInfo.IsCheckState is true ).

The following code snippets (auto-collected from DevExpress Examples) contain references to the CellData property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/Form1.cs#L171

csharp
if (group != null)
    args.CellData = group.Name;

winforms-spreadsheet-pivot-table-api/CS/SpreadsheetPivotTableExamples/Form1.cs#L159

csharp
if (group != null)
    args.CellData = group.Name;

winforms-spreadsheetcontrol-api-part-3/CS/SpreadsheetControl_API_Part03/Form1.cs#L332

csharp
if (group != null)
    args.CellData = group.Name;

winforms-richeditcontrol-common-api/CS/RichEditAPISample/Form1.cs#L437

csharp
if(group != null)
    args.CellData = group.Name;

winforms-richedit-document-api/CS/RichEditAPISample/Form1.cs#L426

csharp
if (group != null)
    args.CellData = group.Name;

winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/Form1.vb#L165

vb
If group IsNot Nothing Then
    args.CellData = group.Name
End If

winforms-spreadsheet-pivot-table-api/VB/SpreadsheetPivotTableExamples/Form1.vb#L151

vb
If group IsNot Nothing Then
    args.CellData = group.Name
End If

winforms-spreadsheetcontrol-api-part-3/VB/SpreadsheetControl_API_Part03/Form1.vb#L332

vb
Dim group As CodeExampleGroup = TryCast(args.Node, CodeExampleGroup)
If group IsNot Nothing Then args.CellData = group.Name
Dim example As CodeExample = TryCast(args.Node, CodeExample)

winforms-richeditcontrol-common-api/VB/RichEditAPISample/Form1.vb#L429

vb
If group IsNot Nothing Then
    args.CellData = group.Name
End If

winforms-richedit-document-api/VB/RichEditAPISample/Form1.vb#L428

vb
Dim group As CodeExampleGroup = TryCast(args.Node, CodeExampleGroup)
If group IsNot Nothing Then args.CellData = group.Name
Dim example As CodeExample = TryCast(args.Node, CodeExample)

See Also

VirtualTreeGetCellValueInfo Class

VirtualTreeGetCellValueInfo Members

DevExpress.XtraTreeList Namespace