Hi
I am trying to determine a very very simple thing : the Start and Stop dates of the visible interval in your WinGanttView.
I would have expected it to be in
theGanttView.TimelineSettings.PrimaryInterval.Interval
except that this is an int, not a time interval. So How do I get the time interval? I mean in NORMAL .NET fully-specified System.DateTime?
And I need that in Form initialization routine .
Hello Florin,
You are on the right way. Actually you can get the visible date-time range via VisibleDateTimeRange property of TimelineSettings like this:
var range = this.ultraGanttView1.TimelineSettings.VisibleDateTimeRange;
var firstVisibleDate = range.StartDateTime;
var lastVisibleDate = range.EndDateTime;
More information about VisibleDateTimeRange property you may find in our online documentation here http://help.infragistics.com/Help/Doc/WinForms/2016.1/CLR4.0/html/Infragistics4.Win.UltraWinGanttView.v16.1~Infragistics.Win.UltraWinGanttView.Timeline~VisibleDateTimeRange.html.
Please let me know if you have any further questions.
Sincerely,
Milko
Entry Level Software Developer