Skip to main content
Tab

GridViewDataDateColumn Class

Represents a data column used to display DateTime values.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public class GridViewDataDateColumn :
    GridViewEditDataColumn,
    IDateEditIDResolver

Remarks

GridViewDataDateColumn objects represent data columns used to display data from DateTime data fields. The column editor’s settings can be accessed and customized using the GridViewDataDateColumn.PropertiesDateEdit property.

Concept

Data Columns

Example

<dx:ASPxGridView ID="ASPxGridView1" runat="server" Width="100%" KeyFieldName="OrderID"
  DataSourceID="OrdersDataSource" >
    <Columns>
        <dx:GridViewDataTextColumn FieldName="OrderID" VisibleIndex="0" ReadOnly="True">
            <EditFormSettings Visible="False" />
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataDateColumn FieldName="OrderDate" VisibleIndex="1">
            <PropertiesDateEdit DisplayFormatString="ddd dd/MM/yyyy" Height="30" />
        </dx:GridViewDataDateColumn>
        <dx:GridViewDataTextColumn FieldName="ShipName" VisibleIndex="2">
        </dx:GridViewDataTextColumn>
    </Columns>
    <SettingsPager Mode="ShowPager" PageSize="4" />
</dx:ASPxGridView>

GridViewDataDateColumn - PropertiesDateEdit Property

See Also