Back to Devexpress

ResourcesTree.PopulateColumns() Method

windowsforms-devexpress-dot-xtrascheduler-dot-ui-dot-resourcestree-9d6f0de1.md

latest1.8 KB
Original Source

ResourcesTree.PopulateColumns() Method

Creates Resource Tree columns for all public fields in the bound data source based on the configured resource mappings. This method removes all existing columns.

Namespace : DevExpress.XtraScheduler.UI

Assembly : DevExpress.XtraScheduler.v25.2.Extensions.dll

NuGet Package : DevExpress.Win.SchedulerExtensions

Declaration

csharp
public void PopulateColumns()
vb
Public Sub PopulateColumns

Remarks

The following code snippet creates and displays a Resource Tree, binds it to a SchedulerControl instance, and generates columns according to the configured resource mappings:

csharp
var rt = new ResourcesTree();
Controls.Add(rt);
rt.Size = new Size(250, 400);
rt.Dock = DockStyle.Right;
rt.SchedulerControl = this.schedulerControl1;
rt.PopulateColumns();

See Also

ResourcesTree Class

ResourcesTree Members

DevExpress.XtraScheduler.UI Namespace