10754 : Replace the DateScaler span text

Question

In the upper left corner of the Gantt chart time-scale there is a couple of dates showing, e.g. Aug 9, 2006 – Aug 9, 2007.

Is there any way to replace those with the system “Data Date” or “Today Date”. If not, is there any way to get ride of those dates?

Thanks

Answer

Implement the event Gantt.DateScaler.OnViewDateInformation and change the value of the argument e.Text to whatever you need.

Or if you want to do something more advanced, like drawing pictures, or multi format string output, just draw it yourself in the Background draw event of the DateScaler and return e.ContinueDraw=false in this event.

 

Leave a Reply