datagrid in vb formatting with color

lauriemc

Freshman
Joined
Feb 2, 2007
Messages
26
I have a datagrid in vb.net. I have used the DataGridTableStyle class to format it successfully - until now. I don't know if what I am doing should be in the DataGridTableStyle, perhaps somehow I should be formatting the grid itself.

Several of the columns in my grid are true/false. What I want to do is if the display / contents are 'true', then I want to set the fore color to green, otherwise I want to leave it black.

Has anyone used the DataGridTableStyle to successfully do this ? Please share, thank you, laurie mc
 
Back
Top