windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-75a00eae.md
Allows you to split appointments into groups.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.dll
NuGet Package : DevExpress.Win.Scheduler
public event CustomAppointmentGroupEventHandler CustomAppointmentGroup
Public Event CustomAppointmentGroup As CustomAppointmentGroupEventHandler
The CustomAppointmentGroup event's data class is DevExpress.XtraScheduler.CustomAppointmentGroupEventArgs.
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.
void SchedulerControl1_CustomAppointmentGroup(object sender, CustomAppointmentGroupEventArgs e) {
e.GroupKey = (int)e.AppointmentLayoutInfo.Appointment.LabelKey;
}
Private Sub SchedulerControl1_CustomAppointmentGroup(ByVal sender As Object, ByVal e As CustomAppointmentGroupEventArgs)
e.GroupKey = CInt(Math.Truncate(e.AppointmentLayoutInfo.Appointment.LabelKey))
End Sub
See Also