I have a datagrid with a combobox in the header. I am using the combobox to select an deseclect all the values in the column. Here is the xaml code for it:
<DataGridTemplateColumn.HeaderTemplate>
<DataTemplate>
<CheckBox x:Name="chbSelectAll" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0" Padding="0"
Checked="chbSelectAll_Checked" Unchecked="chbSelectAll_Unchecked" IsChecked="False"/>
</DataTemplate>
</DataGridTemplateColumn.HeaderTemplate>
I can now set the column values by using the checked/unchecked event. Now I want to access the value of the checkbox in the header. Or simply a way to uncheck it through code.