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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top