IsSelected property of a GridRow

2 posts, 0 answers
  1. StevenDale
    StevenDale avatar
    100 posts
    Member since:
    Apr 2007

    Posted 02 Sep 2009 Link to this post

    I want to do the following which I can do with most of the itemcollections in the ms toolbox.

    I want to be able to bind a custom property on an object to the SelectedProperty of a row in a gridview. The result would be that you could select multiple rows in a gridview and then each of the objects in the list that the Grid was bound to would have their IsSelectedProperty set to true.

    Example of TreeView:
    So each TreeViewItem IsSelected property is bound to the bound objects IsSelectedProperty.




    Style x:Key="{x:Type TreeViewItem}" TargetType="{x:Type TreeViewItem}">




        <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />

    Is this possible with the GridView?



  2. Milan
    Milan avatar
    1989 posts

    Posted 04 Sep 2009 Link to this post

    Hi Billy Jacobs,

    Here is a sample that demonstrates how this can be done with RadGridView.

    Kind regards,
    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.
  3. DevCraft banner
Back to Top