Home All Groups Group Topic Archive Search About

change backcolor of a particular row

Author
9 Feb 2005 5:09 PM
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.

Author
2 Mar 2005 3:00 PM
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.


Show quoteHide quote
"Harsh Vardhan Singh" <harshvardhansingh1***@yahoo.com> wrote in message
news:eVcslosDFHA.936@TK2MSFTNGP12.phx.gbl...
> 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.
>