This example displays your local file-folder structure in the WinForms TreeList control. The example implements dynamic node loading in unbound mode:
private void treeList1_BeforeExpand(object sender, DevExpress.XtraTreeList.BeforeExpandEventArgs e) {
if (e.Node.Tag != null) {
Cursor currentCursor = Cursor.Current;
Cursor.Current = Cursors.WaitCursor;
InitFolders(e.Node.GetDisplayText("FullName"), e.Node);
e.Node.Tag = null;
Cursor.Current = currentCursor;
}
}
- Unbound Mode
- Virtual Mode - Binding to a Hierarchical Business Object (Data Source Level)
- Virtual Mode (Dynamic Data Loading) Using Events (Tree List Level)
(you will be redirected to DevExpress.com to submit your response)