data grid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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..
das
 
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
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...
das
 
Back
Top