- 2 minutes to read
This section contains information on binding modes supported by the Tree List control.
Learn how to create a Tree List control, bind it to data and customize the control's view and behavior options.
In this mode, the Tree List creates nodes for all records in the underlying data source once the data source is assigned to the control.
The Tree List control can be bound to any traditional data source: a BindingSource, BindingList<T>, List<T>, DataTable, DataView and DataSet objects, objects that implement specific interfaces (e.g., IList, ITypedList and IBindingList), SQL data, XML data, Excel data sources, etc.
See Bound Mode to learn more.
In virtual mode, data is loaded by the Tree List control on demand, using specific events or by calling certain methods on the bound object. Virtual mode significantly speeds up application performance for complex data sources with many parent-child nesting levels.
Virtual mode can be implemented using one of the two approaches:
- At the TreeList level. See Virtual Mode (Dynamic Data Loading) Using Events (Tree List Level).
- At the data source level. See Virtual Mode - Binding to a Hierarchical Business Object (Data Source Level).
Unbound Mode & Unbound Columns
The Tree List allows you to have unbound columns when the control itself is bound to a data source. Such columns display custom data, which is either calculated based on other column values, or provided on the dedicated event.
If the Tree List contains only unbound columns and the TreeList.DataSource property is not set, such a scenario is called unbound mode. In this mode, you manually create Tree List columns. Nodes are then created all at once or dynamically, using events.