aspnet-devexpress-dot-web-dot-aspxgantt-6a6db149.md
A column that displays date and time.
Namespace : DevExpress.Web.ASPxGantt
Assembly : DevExpress.Web.ASPxGantt.v25.2.dll
NuGet Package : DevExpress.Web
public class GanttDateTimeColumn :
GanttDataColumn
Public Class GanttDateTimeColumn
Inherits GanttDataColumn
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 sectionThe section is always visible and has a calendar control that allows users to select a date.Time sectionThe 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 >
<Columns>
<dx:GanttDateTimeColumn FieldName="StartDate" Caption="Start Date">
<PropertiesDateEdit AllowUserInput="true" DisplayFormatString="MM/dd/yy H:mm">
<TimeSectionProperties Visible="true"/>
</PropertiesDateEdit>
</dx:GanttDateTimeColumn>
<!-- ... -->
</Columns>
</SettingsTasksList>
</dx:ASPxGantt>
Object StateManager CollectionItem WebColumnBase GanttColumnBase GanttDataColumn GanttDateTimeColumn
See Also