change backcolor of a particular row

  • Thread starter Harsh Vardhan Singh
  • Start date
H

Harsh Vardhan Singh

hi,
i have a datagrid in which i wud like to highlight particular rows by either
changing their backcolor or highlighting the text in those rows to bold...
how can i do this?

plz help..

thanx in advance
harsh.
 
A

Arthur Dent

You can use the ItemDataBound event, and when you find a row you want to
highlight (presumably based on some field data?), you can do

e.Item.BackColor = Color.Red

or whatever color you want.
 

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
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top