Skip to main content

SchedulerViewBase.GroupType Property

Gets or sets a value that specifies the type of grouping applied to the View.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.2.dll

Declaration

[Browsable(false)]
[DefaultValue(SchedulerGroupType.None)]
public SchedulerGroupType GroupType { get; set; }

Property Value

Type Default Description
SchedulerGroupType None

A SchedulerGroupType enumeration value that specifies how appointments are grouped within the View.

Available values:

Name Description
None

No grouping is applied.

Date

Grouping by dates. Appointments are grouped by dates.

Resource

Grouping by resources. Appointments are grouped by resources.

Remarks

If the View displays appointments which belong to more than one resource, then the GroupType property can be used to group the appointments within the View in a specific manner. The available types of grouping are specified by the SchedulerGroupType enumeration and include grouping by dates, grouping by resources and the absence of grouping. Grouping appointments by dates or resources facilitates the task of managing user time within the scheduling area.

Note that grouping can also be applied at the level of the SchedulerControl via its SchedulerControl.GroupType property. When setting the scheduler’s SchedulerControl.GroupType property, its value is assigned to each View’s GroupType property so that the same grouping will be applied within the scheduling area regardless of the type of the scheduler’s active View (SchedulerControl.ActiveView). But the manner in which each particular View is grouped can be changed via the View’s GroupType property that overrides the scheduler’s SchedulerControl.GroupType property.

Note

The GroupType property does not affect the Agenda View.

Example

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.

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;

The following code snippets (auto-collected from DevExpress Examples) contain references to the GroupType property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also