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

IsSelected property of a GridRow

1 Answer 127 Views
GridView
This is a migrated thread and some comments may be shown as answers.
StevenDale
Top achievements
Rank 2
StevenDale asked on 02 Sep 2009, 09:01 PM

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}" />
    ....
    ....
</Style>

Is this possible with the GridView?

Thanks,

 

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 04 Sep 2009, 12:52 PM
Hi Billy Jacobs,

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

Kind regards,
Milan
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.
Tags
GridView
Asked by
StevenDale
Top achievements
Rank 2
Answers by
Milan
Telerik team
Share this question
or