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

get selected observable collection from datagrid(may be one or more rows selected by checkbox) on some button click event

3 Answers 155 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 07 Apr 2011, 03:56 PM

I have a observable collection bind to datagrid.

I need to get selected observable collection from datagrid(may be one or more rows selected by checkbox) on some button click event and pass it another view.

I use a MVVM pattern.

Please help

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 07 Apr 2011, 04:00 PM
Hi Rahul,

You may directly use the SelectedItems collection of the grid.
 

Regards,
Maya
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Rahul
Top achievements
Rank 1
answered on 07 Apr 2011, 04:33 PM
Hi Maya,
Could you please explain with sample code.
I am new to WPF Technology.
0
Vlad
Telerik team
answered on 07 Apr 2011, 04:50 PM
Hello,

 You can check this blog post for more info. 

Regards,
Vlad
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Rahul
Top achievements
Rank 1
Answers by
Maya
Telerik team
Rahul
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or