Skip to main content
All docs

GanttDateTimeColumn Class

A column that displays date and time.

Namespace: DevExpress.Web.ASPxGantt

Assembly: DevExpress.Web.ASPxGantt.v23.1.dll

NuGet Package: DevExpress.Web


public class GanttDateTimeColumn :


Add a GanttDateTimeColumn object to the Columns collection to create a column that displays the date and time.

This column editor is a text box with a drop-down button. Click it to display a drop-down window that consists of the following sections:

Calendar section
The section is always visible and has a calendar control that allows users to select a date.
Time section
The section has a time editor and clock. The time editor allows users to select the time, and the clock displays the selected time. Set the Visible property to true to display this section.

The example below uses the PropertiesDateEdit property to customize the column editor‘s appearance and behavior:

<dx:ASPxGantt ID="Gantt" runat="server"...>
    <!-- ... -->
    <SettingsTasksList >
            <dx:GanttDateTimeColumn FieldName="StartDate" Caption="Start Date">
                <PropertiesDateEdit AllowUserInput="true" DisplayFormatString="MM/dd/yy H:mm">
                    <TimeSectionProperties Visible="true"/>
            <!-- ... -->

Add a column that displays date and time in the ASPxGantt


Online Demos

See Also