Tab
A newer version of this page is available. Switch to the current version.

GridViewDataDateColumn Class

Represents a data column used to display DateTime values.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class GridViewDataDateColumn :
    GridViewEditDataColumn,
    IDateEditIDResolver
Public Class GridViewDataDateColumn
    Inherits GridViewEditDataColumn
    Implements 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" AutoGenerateColumns="False"  
  DataSourceID="SqlDataSource1" Width="40%" Theme="Office365" KeyFieldName="OrderID">
    <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>

See Also