Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GanttControl.ChartFinishDate Property

Gets or sets the last date in the chart area.

Namespace: DevExpress.XtraGantt

Assembly: DevExpress.XtraGantt.v24.2.dll

NuGet Package: DevExpress.Win.Gantt

#Declaration

[DefaultValue(null)]
[DXCategory("Data")]
public virtual DateTime? ChartFinishDate { get; set; }

#Property Value

Type Default Description
Nullable<DateTime> null

A DateTime value that specifies a date.

#Remarks

The Gantt control’s ChartStartDate and ChartFinishDate properties specify the first and last visible dates in the chart area. Use these properties to specify an approximate date range (see the example below).

Date Range - WinForms Gantt Control

ganttControl1.ChartStartDate = new DateTime(2020, 6, 1);
ganttControl1.ChartFinishDate = new DateTime(2020, 6, 10);

You can also use the OptionsPrint property to access the ChartStartDate and ChartFinishDate properties that specify the first and last visible dates when the chart is printed or exported.

See Also