0

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?

Mercender
  • 19
  • 8
  • Did you search stackoverflow before you posted? This question seems to have the answer: http://stackoverflow.com/questions/10208004/datagrid-column-header-should-check-uncheck-checkbox-s-state-depending-upon-wh – Taterhead Mar 05 '16 at 10:44
  • The question you linked is asking something more complex. – Mercender Mar 05 '16 at 17:25
  • What have you tried to put in the handlers? What does your XAML look like? – Taterhead Mar 05 '16 at 21:42

0 Answers0