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

GridColumnDateRangePickerSettings.CalendarColumnCount Property

Gets or sets the number of months displayed in the header filter’s dropdown calendars.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(2)]
public int CalendarColumnCount { get; set; }

Property Value

Type Default Description
Int32 2

An integer value that specifies the number of displayed months.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to CalendarColumnCount
ASP.NET Bootstrap Controls BootstrapCardViewDataColumnHeaderFilterSettings
.DateRangePickerSettings.CalendarColumnCount
BootstrapGridViewDataColumnHeaderFilterSettings
.DateRangePickerSettings.CalendarColumnCount
ASP.NET Web Forms Controls TreeListColumnSettingsHeaderFilter
.DateRangePickerSettings.CalendarColumnCount
CardViewDataColumnHeaderFilterSettings
.DateRangePickerSettings.CalendarColumnCount
GridViewDataColumnHeaderFilterSettings
.DateRangePickerSettings.CalendarColumnCount
VerticalGridDataRowHeaderFilterSettings
.DateRangePickerSettings.CalendarColumnCount

Remarks

When a date column’s GridDataColumnHeaderFilterSettings.Mode property is set to DateRangePicker, the column header filter displays a date range picker control, allowing end-users to specify the required date range.

By default, the end date editor in the date range picker control is intended to display two months in its drop-down calendar. This behavior is defined by the CalendarColumnCount property (the default value of the CalendarColumnCount property is 2).


<Columns>
            <dx:GridViewDataTextColumn FieldName="Patient" />
            <dx:GridViewDataTextColumn FieldName="Doctor" />
            <dx:GridViewDataTextColumn FieldName="Clinic" />
            <dx:GridViewDataDateColumn FieldName="VisitDate" Width="300px" Settings-AllowHeaderFilter="True">
                <SettingsHeaderFilter>
                    <DateRangePickerSettings CalendarColumnCount="4" />
                </SettingsHeaderFilter>
            </dx:GridViewDataDateColumn>
        </Columns>

Note

The CalendarColumnCount property specified for the start date editor in the date range picker control is not in effect.

See Also