This is a migrated thread and some comments may be shown as answers.

Change GridRow background colors

1 Answer 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Fu Wen
Top achievements
Rank 1
Fu Wen asked on 09 Jul 2009, 11:01 PM
Hi There

I am wondering if it is possible to change  row background colors programmatically instead of using the UseAlternateRowStyle property. Since the latter only allows to choose two colors. If possible, How?

Many thanks

Fu

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 10 Jul 2009, 12:57 PM
Hi Fu Wen,

Please, take a look at the following forum post. It describes various techniques for changing the background of rows and cells:

Row Style according data item

Or you can simply attach to the RowLoaded event of the grid and change the Background of the row that is coming through the event args. I hope this helps.

Best wishes,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Fu Wen
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or