Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Change label appearance based on data
posted

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