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.
 
Back
Top