Highlight First 10 Rows

2 posts, 0 answers
  1. Eddie
    Eddie avatar
    3 posts
    Member since:
    Jan 2009

    Posted 03 Oct 2011 Link to this post

    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?
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 04 Oct 2011 Link to this post

    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 >>

Back to Top