Skip to content

Bind the GridControl‘s SelectedItems property to a collection defined in a ViewModel and add a button that deletes the selected rows.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/wpf-data-grid-bind-selected-rows-to-viewmodel-property

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF Data Grid - Bind Selected Rows to a ViewModel Property

This example shows how to synchronize the GridControl‘s selection with an item collection in a ViewModel. The example:

  1. Binds the GridControl‘s SelectedItems property to the Selection collection defined in a ViewModel.
  2. Adds a button that deletes the selected rows.

Files to Look At

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Bind the GridControl‘s SelectedItems property to a collection defined in a ViewModel and add a button that deletes the selected rows.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •