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

Changing background color alternatively according to row number.

2 Answers 106 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Maciej Czerwiakowski
Top achievements
Rank 1
Maciej Czerwiakowski asked on 29 Dec 2009, 01:28 PM
Hi,

How can i achieve functionality of changing row background color acording to even/odd value of row number. In other words: I would like to have all even-number rows in color A and all odd-number rows in color B, starting from first row in group.

Regards,
MC.

2 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 29 Dec 2009, 03:25 PM
Hello Maciej Czerwiakowski,

I am guessing you are aiming to have alternate row colors. In this case use the AlternationCount="2".

Best wishes,
Kalin Milanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Maciej Czerwiakowski
Top achievements
Rank 1
answered on 04 Jan 2010, 07:31 AM
Hi Kalin,

Thanks for your help it was exactly what I need :)

Regards,
MC.
Tags
GridView
Asked by
Maciej Czerwiakowski
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
Maciej Czerwiakowski
Top achievements
Rank 1
Share this question
or