data grid

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
 
A

adnan boz

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top