lauriemc Posted September 24, 2007 Posted September 24, 2007 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 Quote
techmanbd Posted September 24, 2007 Posted September 24, 2007 Try looking at this thread. I use .net 2003 and you will see how you must make a special class to handle this. If you are using 2005, it will show what that person did as well. http://www.xtremedotnettalk.com/showthread.php?t=100043&highlight=datagrid Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.