In a datagrid I have a checkbox column, with a checkbox header.
I have the two below events binded in xaml so that they fire when the header checkbox is checked or unchecked.
private void check_Checked(object sender, RoutedEventArgs e)
{
//Code to check all items
}
private void check_Unchecked(object sender, RoutedEventArgs e)
{
//Code to uncheck all items
}
What can I put in these event handlers to check or uncheck all the items (rows) in my datagrid?