This example shows how to synchronize the GridControl‘s selection with an item collection in a ViewModel. The example:
- Binds the GridControl‘s SelectedItems property to the Selection collection defined in a ViewModel.
- Adds a button that deletes the selected rows.
- MainWindow.xaml (VB: MainWindow.xaml)
- CustomersViewModel.cs (VB: CustomersViewModel.vb)
- CustomersDataModel.cs (VB: CustomersDataModel.vb)
- Binding to a Collection of Selected Items
- DataControlBase.SelectedItems
- Multiple Row Selection
- Focus, Navigation, Selection
- WPF Data Grid: MVVM Support
- WPF Data Grid - Handle Row Double-clicks in a MVVM Application
- How to Bind the ChartControl to the GridControl's VisibleItems Collection
- WPF Data Grid - How to Change the Appearance of Selected Cells
(you will be redirected to DevExpress.com to submit your response)