multi selection without using ctrl/shift keys

Oct 21, 2008 at 4:03 PM
Edited Oct 23, 2008 at 4:21 PM
Hi, I would like to implement multi selection without using the ctrl key, etc. 

Also, I would like the last selected row, to be a different color then the previous selected rows, is this possible with this version of the grid?

Thanks for your time
Nov 4, 2008 at 1:57 PM
The first request will be really hard as that functionality is sort of hard coded in DataGrid.cs. 

The second request is possible.  Note that DataGridCell also creates a background color on selected rows so you will need to remove that.  What you can do is listen for the CurrentItem changing and when it is the last row set the background.  You can also do it in xaml with the row's background bound to IsSelected with a converter that also checks if it's the last row.