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
280
Change font style and color on the basis of ultracombo item
posted

Hi ,

 

i have to change font color and style for a ultra combo text one bases of values. Like if we have 6 values A, B, C, D, E and F in a ultra combe. Now we need that for values A, B and F the forecolor will we red and style will be italic and for others color will be blue and style will be normal. How we will implement this. We have done it for windows combo box control using drawmode and DrawItem event. Please help me out.

 

 

 

  • 469350
    Suggested Answer
    Offline posted

    The easiest way to do this is to handle the IniitalizeRow event of the combo. You can examine the values in the row by using e.Row.Cells[x].Value and then use the e.Row.Appearance to apply an appearance to the row.

  • 280
    posted

    All need at run time..