rows in a datagrid in bold based on the value of a field

A

ALI-R

How can I make some rows (of a datagrid) in bold based on the value of a
field?
for instance if that field is "1" row should be in bold ,otherwise row is in
normal mode.

thanks for your help.
Ali-R
 
E

Eliyahu Goldin

In code-behind use ItemDataBound event. For every data item (grid row) check
the data field value and set visual properties or css class as you wish.
Alternatively, you can do it in PreRender event.

Eliyahu
 

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

Members online

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top