We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Get selected rows bound to collection in view model

Thread ID:





128982 Feb 20,2017 09:43 AM UTC Feb 22,2017 07:38 AM UTC WPF 3
Tags: SfDataGrid
Somanna Chottekalapanda
Asked On February 20, 2017 09:43 AM UTC

Is there are way to get the selected rows bound to a collection in the view model? The below has been set up for the grid.


Jai Ganesh S [Syncfusion]
Replied On February 21, 2017 07:31 AM UTC

Hi Som, 
We already have a kb to bind the SelectedItems property from viewmodel and please find it from below, 
Jai Ganesh S 

Somanna Chottekalapanda
Replied On February 21, 2017 09:32 AM UTC

Hi Jai Ganesh,

This is not working for me. May be because the selection unit is set as Row.


Jai Ganesh S [Syncfusion]
Replied On February 22, 2017 07:38 AM UTC

Hi Som,  
We have checked in our side to get the SelectedItems in viewmodel while setting the SelectionMode="Extended", SelectionUnit="Row" and NavigationMode="Row" but it working fine in our end. 
Could you please share more details about your issue or please state the issue in above sample? This would be more helpful for us to proceed further. 
Jai Ganesh S 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon