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.
Unfortunately, activation email could not send to your email. Please try again.

Get selected rows bound to collection in view model

Thread ID:

Created:

Updated:

Platform:

Replies:

128982 Feb 20,2017 04:43 AM Feb 22,2017 02:38 AM WPF 3
loading
Tags: SfDataGrid
Somanna Chottekalapanda
Asked On February 20, 2017 04:43 AM

Hi,
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.
SelectionMode="Extended"
SelectionUnit="Row"
NavigationMode="Row"

Thanks,
Som

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

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


Somanna Chottekalapanda
Replied On February 21, 2017 04:32 AM

Hi Jai Ganesh,

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

Thanks,
Som

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

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. 
Regards, 
Jai Ganesh S 


CONFIRMATION

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.

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.

;