I've setup my DataGrid to have a checkbox column. I want to implement a feature where I can click the checkbox on one row, then left shift + click on a checkbox in another row and check it along with all the rows in between.
I can get the first row and detect the left shift + click to get the last row. My problem is that I can't see a way to iterate through the grid to capture all ids for the rows in between so I can check the boxes for those rows as well.
Using DataGrid.ItemSource won't work because it won't respect any sorting, filtering, or grouping in the grid. How do I iterate through grid rows to find my first and last id and collect all ids in between?