Skip to main content
All docs
V19.1

MVCxGanttColumn Class

Represents a gantt’s column.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.1.dll

Declaration

public class MVCxGanttColumn :
    GanttColumn

The following members return MVCxGanttColumn objects:

Remarks

The Gantt stores its columns in the Columns collection. A column can be accessed by its caption or the name of the data source field to which it is bound.

Example

@Html.DevExpress().Gantt(settings => {
    settings.Name = "gantt";
    settings.CallbackRouteValues = new { Controller = "Gantt", Action = "FeaturesPartial" };
    ...
    settings.Columns.Add(c => {
        c.FieldName = "Subject";
        c.Width = 280;
    });
    settings.Columns.Add(c => {
        c.FieldName = "StartDate";
        c.Width = 100;
        c.DisplayFormat = "MM/dd/yyyy";
    });
    settings.Columns.Add(c => {
        c.FieldName = "EndDate";
        c.Width = 100;
        c.DisplayFormat = "MM/dd/yyyy";
    });
...
}).Bind(GanttDataProvider.Tasks, GanttDataProvider.Dependencies, GanttDataProvider.Resources, GanttDataProvider.ResourceAssignments).GetHtml()

Online Demos

See Also