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
410
how to change color of column in ultra grid while retriving data from database
posted

hi

 

i want to change the color of column while loading windows form

example:-  i have a table like this:- table name status

columns are id, name status, description and values are ( 1, john, completed, work is done)

here status data is completed . now i want to show this completed in green in ultrgrid reaming columns are in normal colors

 

so any one having idea how to change the color of columns

 

By

N.Ravikumar

 

 

 

 

 

  • 69832
    Verified Answer
    Offline posted

    UltraGridColumn exposes a Header property which in turn exposes an Appearance property. All Infragistics Appearance properties expose an object which has properties like ForeColor and BackColor. You can set these properties to change the colors; note that if the header is themed you will also have to set the ThemedElementAlpha property to Transparent.

    UltraGridColumn also exposes a CellAppearance property, which works exactly the same as the Header's Appearance, except that it applies to cells rather than the headers.