Color border around selection of multiple rows in telerik radgridview

2 posts, 0 answers
  1. Dilip
    Dilip avatar
    23 posts
    Member since:
    Jun 2013

    Posted 23 Jun 2015 Link to this post


    I am new to the Silverlight, can anyone please guide me how to draw outer border color on selection of multiple rows in radgridview(Similar to excel, if we select 2 or 3 rows only outer border will get highlight). I have done for individual rows using below code.

    foreach (var itm in this.grd.SelectedItems)
    itemsasf.Add(itm as Collection);

    GridViewRow row = this.grd.ItemContainerGenerator.ContainerFromItem(itm) as GridViewRow;
    if (row != null)
    //row.VerticalGridLinesBrush = new SolidColorBrush(Colors.Black);
    row.BorderBrush = new SolidColorBrush(Colors.Black);
    row.BorderThickness = new Thickness(1.0);



    Dilip L


  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 26 Jun 2015 Link to this post

    Hello Dilip,

    You can check the template structure of GridViewRow. The way to style block of rows would be applying a RowStyleSelector. On the other hand, you can specify styling for the particular selected row. You can also refer to the documentation on Styling Rows.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top