Groups | Blog | Home
all groups > c# > june 2004 >

c# : data grid


das
6/7/2004 10:21:02 PM
Hi all
I'm using Data Grid in asp.net. There is a boolean field in the datagrid column. I want that if field is true then the fore color should be black else the fore color should be read. I can do this with the loop. but is there any property to do it automatically

Thanks in adavance..
adnan boz
6/8/2004 9:46:46 AM
Hi,
Not much simple but an alternative.
Add a TemplateColumn, place a label or something else and bind the =
forecolor property to the containers bool field, by entering some =
expressions.


Good Luck
Adnan
[quoted text, click to view]
Hi all,
I'm using Data Grid in asp.net. There is a boolean field in the =
datagrid column. I want that if field is true then the fore color should =
be black else the fore color should be read. I can do this with the =
loop. but is there any property to do it automatically.

Thanks in adavance...
AddThis Social Bookmark Button