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

Highlight First 10 Rows

1 Answer 68 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Eddie
Top achievements
Rank 1
Eddie asked on 03 Oct 2011, 08:34 PM
For easy viewing of a top ten list, I would like to highlight the top ten rows. I can not figure out how to get the row index to apply formatting to it correctly. Anyone have any examples? Also where would be the best place to do the formatting?

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 04 Oct 2011, 06:44 AM
Hello,

 You can use RowStyleSelector for conditional formatting:
http://demos.telerik.com/silverlight/#GridView/Selectors/StyleSelectors/RowStyleSelector

You can use also IndexOf() method of the grid Items collection to find the index of particular data item. 

Best wishes,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Eddie
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or