WPF DataGrid Get All SelectedRows

Posted by anvarbek raupov on Stack Overflow See other posts from Stack Overflow or by anvarbek raupov
Published on 2012-06-01T16:20:46Z Indexed on 2012/06/01 16:41 UTC
Read the original article Hit count: 224

Filed under:
|
|
|
|

Have to use free WPF DataGrid (I thought Infragistics libraries are bad, I take it back after this) for this project of mine.

Looks like DataGrid doesnt have clean MVVM Friendly way of getting the list of selectedRows ?

I can data bind to SelectedItem="{Binding SelectedSourceFile}" but this only shows the 1st selected row. Need to be able to get all selected rows.

Any hints to do it cleanly via MVVM ?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about wpf