I need some c# code to select / deselect all checkboxes in a datagrid in WPF 3.5 framework.
I would like to do this by clicking a single header checkbox in the grid.
This can be done declaratively. The following creates a checkbox column for each row and which can toggle row selections. The header of the checkbox column can be clicked to do a select all of the rows.