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

GridColumnDateRangePickerSettings.PickerType Property

Specifies a date component that a user can select (a day, month, decade or year).

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

[DefaultValue(DatePickerType.NotSet)]
public DatePickerType PickerType { get; set; }

Property Value

Type Default Description
DatePickerType **NotSet**

One of the DatePickerType enumeration values.

Available values:

Name Description
NotSet

The date picker type is not set. In this case:

Days

An end user can select a day in the calendar.

Months

An end user selects a month in the calendar.

Years

An end user selects a year in the calendar.

Decades

An end user selects a decade in the calendar.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to PickerType
ASP.NET Controls and MVC Extensions TreeListColumnSettingsHeaderFilter
CardViewDataColumnHeaderFilterSettings
GridViewDataColumnHeaderFilterSettings
VerticalGridDataRowHeaderFilterSettings
ASP.NET Bootstrap Controls BootstrapCardViewDataColumnHeaderFilterSettings
BootstrapGridViewDataColumnHeaderFilterSettings

Remarks

The date column’s date edit supports month-year picker mode. In this mode, you can specify which date component a-user can select in the control.

<dx:ASPxGridView ID="grid" runat="server" DataSourceID="ObjectDataSource1" Width="100%">
    <Columns>
        ...
        <dx:GridViewDataDateColumn FieldName="VisitDate" Width="300px" Settings-AllowHeaderFilter="true">
            <PropertiesDateEdit>
                <DateRangeSettings PickerType="Months"  /> 
            </PropertiesDateEdit>
        </dx:GridViewDataDateColumn>
    </Columns>
</dx:ASPxGridView>

Online Demo

Month-Year Picker

Online Example

How to use the DateEdit in month-year picker mode to filter the GridView

See Also