Skip to main content
You are viewing help content for a version that is no longer maintained/updated.
All docs
V21.1
  • DayView.ColumnWidthMode Property

    Gets or sets whether all DayView columns are equal in width or if column width is calculated individually depending on the number of appointments scheduled for the same time.

    Namespace: DevExpress.XtraScheduler

    Assembly: DevExpress.XtraScheduler.v21.1.dll

    NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Scheduler

    Declaration

    [DefaultValue(ColumnWidthMode.Fixed)]
    [XtraSerializableProperty(XtraSerializationFlags.DefaultValue)]
    public ColumnWidthMode ColumnWidthMode { get; set; }

    Property Value

    Type Default Description
    DevExpress.XtraScheduler.ColumnWidthMode **Fixed**

    Specifies whether column widths are equal.

    Remarks

    This property accepts two values: ColumnWidthMode.Auto and ColumnWidthMode.Fixed.

    Fixed
    The View is split into equally sized columns (the number of appointments in day columns is irrelevant). This is the default behavior.
    Fixed Column Width Mode
    Auto
    In this mode, the View automatically calculates day column widths depending on the number of appointments that occupy the same time slot.
    Auto Column Width Mode

    In DayView, this property is in effect when multiple days are selected. ColumnWidthMode is also available in DayView descendants: FullWeekView and WorkWeekView.

    Both column width modes allow you to handle the CustomDayViewColumnWidth event to set up custom column widhts (in relative units).

    See Also