Skip to main content
All docs
V26.1
  • SchedulerControl.CustomAppointmentGroup Event

    Allows you to split appointments into groups.

    Namespace: DevExpress.XtraScheduler

    Assembly: DevExpress.XtraScheduler.v26.1.dll

    NuGet Package: DevExpress.Win.Scheduler

    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