如何在devexpress资源树中显示天数
How to display days in devexpress resource tree
我找不到如何在 Devexpress 的 ResourceTree Control(它是调度程序的一个组件)中显示 "Days",如 Devexpress 文档中所示:https://documentation.devexpress.com/#WindowsForms/CustomDocument10685
我应该在 resourceTree 属性还是在 Scheduler 属性中做 smth?
此 Days
列存在于应用于 SchedulerStorage.Resources.DataSource
属性 的基础数据源中。因此,如果您想显示资源数据源中存在的特定列,则可以通过设计器添加它:
或直接在您的代码中。
var colDaysPlanned = new ResourceTreeColumn();
colDaysPlanned.Caption = "Days";
colDaysPlanned.FieldName = "DaysPlanned";
colDaysPlanned.Name = "colDaysPlanned";
resourcesTree1.Columns.Add(colDaysPlanned);
我找不到如何在 Devexpress 的 ResourceTree Control(它是调度程序的一个组件)中显示 "Days",如 Devexpress 文档中所示:https://documentation.devexpress.com/#WindowsForms/CustomDocument10685
我应该在 resourceTree 属性还是在 Scheduler 属性中做 smth?
此 Days
列存在于应用于 SchedulerStorage.Resources.DataSource
属性 的基础数据源中。因此,如果您想显示资源数据源中存在的特定列,则可以通过设计器添加它:
或直接在您的代码中。
var colDaysPlanned = new ResourceTreeColumn();
colDaysPlanned.Caption = "Days";
colDaysPlanned.FieldName = "DaysPlanned";
colDaysPlanned.Name = "colDaysPlanned";
resourcesTree1.Columns.Add(colDaysPlanned);