DataGrid multiple selection

  • Thread starter Thread starter Andrew Milford
  • Start date Start date
A

Andrew Milford

Using the DataGrid control.
User can select multiple rows by click and drag of mouse

Anyone any idea how program can determine which rows are
selected?
 
Yes, but the problem with the IsSelected property is that it doesn't appear to be updated for each row until after everything else is finished (including the paint event). This means that if a user selects multiple rows (using the shift or cntrl keys), you have to use a separate control event to loop through each row to get the entire list of selected rows.

If anyone else has found a way around this, please let me know

Thank
 
Back
Top