Back to Devexpress

How to: Group Appointments by Resources or Dates

windowsforms-2271-controls-and-libraries-scheduler-examples-layout-how-to-group-appointments-by-resources-or-dates.md

latest1.6 KB
Original Source

How to: Group Appointments by Resources or Dates

  • Nov 13, 2018

If appointments which are managed by a scheduler control are assigned to some resources, then it’s possible to group these appointments within the scheduling area.

The following example demonstrates how to group a scheduler’s data. To group data in a scheduler by dates or resources you should simply set the SchedulerControl.GroupType property to an appropriate value of the SchedulerGroupType type. The code below shows how this can be done.

csharp
using DevExpress.XtraScheduler;
// ...

    // Disable data grouping.
    schedulerControl1.GroupType = SchedulerGroupType.None;

    // Group data by dates.
    schedulerControl1.GroupType = SchedulerGroupType.Date;

    // Group data by resources.
    schedulerControl1.GroupType = SchedulerGroupType.Resource;
vb
Imports DevExpress.XtraScheduler
' ...

    ' Disable data grouping.
    SchedulerControl1.GroupType = SchedulerGroupType.None

    ' Group data by dates.
    SchedulerControl1.GroupType = SchedulerGroupType.Date

    ' Group data by resources.
    SchedulerControl1.GroupType = SchedulerGroupType.Resource

See Also

Resources for Appointments

GroupType