Hi. If you work with WPF you can do following:
Your xaml must be like:
<DataGrid>
<DataGrid.Columns>
<DataGridCheckBoxColumn >
<DataGridCheckBoxColumn.ElementStyle>
<Style TargetType="{x:Type CheckBox}">
<EventSetter Event="CheckBox.Loaded" Handler="myHandler"/>
</Style>
</DataGridCheckBoxColumn.ElementStyle>
</DataGridCheckBoxColumn>
</DataGrid.Columns>
</DataGrid>
and you myHandler code behind is:
private void myHandler(object sender, RoutedEventArgs e)
{
CheckBox source = e.OriginalSource as CheckBox;
source.IsChecked = true;
}
I hope this help you.
Good Luck