I want to change the colour and/or font size of the task label on a Gantt chart, dependent upon the data in the row. I don't know where to do it other than in the ChartDrawItem event but as far as I can see there is no reference available back to the row. The best idea I can come up with is to point the ItemLabelsColumnIndex to a column in the dataset where I put the row number of the row, and put the actual task label in a different column, so that in ChartDrawItem I can set the correct text and change the appearance as I wish.
I hope that there is a much easier way to do this that I'm missing; can anybody suggest something?
Thanks,
Mark
Okay, thanks. I may do that or I may just put some sort of encoding in the label field.
that is a very clever way of working through a limitation. i think this is actually the best way to approach the problem.