datagrid with checkbox column, iterate through rows

Sep 11, 2008 at 5:23 AM
One of my columns in datagrid is a checkbox column. It is not a bound column. My other columns in the grid are bound columns.
How do I  find out all the rows with checked checkboxes?
I want to iterate through each row in the grid and check the IsChecked property of CheckBox column.
I did not see anything in the grid to iterate through each row and column.

Do I have to bind the checkbox column also and then check those bound properties?

thanks for the help
Sep 12, 2008 at 2:47 AM
If the column is unbound and you want to iterate through all the rows to find out if they are checked you can go through each row visual and check the cell of that column.  This thread,, has an example of how you can get the cell based on the row and column index.