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

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,082
Members
48,773
Latest member
Kaybee

Latest Threads

Top