I'm using MVVM to bind my collection to a grid, I can get the current item by using ICollectionView, however I need to allow the grid to select multiple rows, and so I need to be notified when the selection changes, but I can't bind to the SelectedItems property as it's not a dependency property, so is there a way to achieve this?
Ideally I would like to bind a property of each item to the 'selected' state for the corresponding grid row.
TVThangapriya V Syncfusion Team June 4, 2013 12:27 PM UTC
Sorry for the delay caused.
We have analyzed your query. You cannot
bind the SelectedItems property of the GridDataControl. However you can get the
selected items by using SelectedItems.CollectionChanged
event. You can refer the following code snippet for this.
+= new System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedItems_CollectionChanged);