windowsforms-devexpress-dot-xtratreelist-dot-virtualtreegetchildnodesinfo.md
Gets or sets the collection of children for the currently processed business object.
Namespace : DevExpress.XtraTreeList
Assembly : DevExpress.XtraTreeList.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
public IList Children { get; set; }
Public Property Children As IList
| Type | Description |
|---|---|
| IList |
Initially this property is set to a null reference. Use this property to assign a list of children for the currently processed object.
|
Use this property to supply children for the currently processed business object. The business object is referred to by the VirtualTreeGetChildNodesInfo.Node property.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Children 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-treelist-virtual-mode/CS/ExampleMainForm.cs#L39
{
e.Children = new string[] { "Root node 1",
"Root node 2",
winforms-tokenedit-dropdown-with-treelist/CS/TokenEditTest/CustomTokenEditDropDownControl.cs#L81
if(e.Node is TreeListDataSet) {
e.Children = ((TreeListDataSet)e.Node).GetChildren();
}
winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/Form1.cs#L182
{
args.Children = examples;
treeListRootNodeLoading = false;
winforms-spreadsheet-pivot-table-api/CS/SpreadsheetPivotTableExamples/Form1.cs#L170
{
args.Children = examples;
treeListRootNodeLoading = false;
winforms-spreadsheetcontrol-api-part-3/CS/SpreadsheetControl_API_Part03/Form1.cs#L343
{
args.Children = examples;
treeListRootNodeLoading = false;
winforms-treelist-virtual-mode/VB/ExampleMainForm.vb#L29
If Equals(sCurrentNode, Nothing) Then
e.Children = New String() {"Root node 1", "Root node 2", "Root node 3"}
Else
winforms-tokenedit-dropdown-with-treelist/VB/TokenEditTest/CustomTokenEditDropDownControl.vb#L91
If TypeOf e.Node Is TreeListDataSet Then
e.Children = CType(e.Node, TreeListDataSet).GetChildren()
End If
winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/Form1.vb#L176
If treeListRootNodeLoading Then
args.Children = examples
treeListRootNodeLoading = False
winforms-spreadsheet-pivot-table-api/VB/SpreadsheetPivotTableExamples/Form1.vb#L162
If treeListRootNodeLoading Then
args.Children = examples
treeListRootNodeLoading = False
winforms-spreadsheetcontrol-api-part-3/VB/SpreadsheetControl_API_Part03/Form1.vb#L339
If treeListRootNodeLoading Then
args.Children = examples
treeListRootNodeLoading = False
See Also
VirtualTreeGetChildNodesInfo Class