Which rows in my DataGrid are selected?

  • Thread starter Thread starter Scott Hodson
  • Start date Start date
S

Scott Hodson

If I select 1 or more rows in a data grid control, how do I detect which
rows are selected/highlighted?
 
Hi,

The short answer: call IsSelected() for every row in the grid.
The long answer: override mouse and keyboard handling to implement your own
selection tracking.
 

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