10364 : Is it possible to draw a dotted line at any other user specified dateTime?

Question

In GTP.NET by specifying Gantt.today=true draws a dotted line at DateTime.Now is it possible to draw such a dotted line as any other user specified dateTime other than at now

Answer

Implement the OnTimeItemAreaPaintBackground event, here you are free to draw anything you want. Then use the Gantt.DateScaler.TimeToPixel to turn your specific date into a pixel value… Remember to check the ScheduleMode property to decide if you should draw a horizontal or vertical line

 

Leave a Reply