Skip to main content
A newer version of this page is available. .

SchedulerControl.CustomAppointmentGroup Event

Allows you to split appointments into groups.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.1.dll

Declaration

public event CustomAppointmentGroupEventHandler CustomAppointmentGroup

Event Data

The CustomAppointmentGroup event's data class is DevExpress.XtraScheduler.CustomAppointmentGroupEventArgs.

Remarks

The CustomAppointmentGroup event fires repeatedly for every encountered appointment; read the e.AppointmentLayoutInfo event parameter to obtain the information about the currently processed appointment, and assign the group index to the integer e.GroupIndex property.

In the Timeline View module of the Scheduler Demo (available in DevExpress Demo Center), appointments are grouped by their Labels.

custom_group

void SchedulerControl1_CustomAppointmentGroup(object sender, CustomAppointmentGroupEventArgs e) {
    e.GroupKey = (int)e.AppointmentLayoutInfo.Appointment.LabelKey;
}
See Also