10069 : Can you have horizontal lines across the Gantt chart?

Question

Can you have horizontal lines across the Gantt chart? Our users do not want Pyjama alternative colours but have requested horizontal lines to distinguish rows.

Answer

There is no “out of the box” setting to fix this but I suggest that you implement the OnTimeItemAreaPaintBackground event and simply iterate thru the rows and draw a line using GDI. You can have a look at the sample called Gantt_BackGround_ForeGround how to handle the drawing.

Leave a Reply