<DataGrid x:Name="dataGridShortcuts" AutoGenerateColumns="False" AlternationCount="2" AlternatingRowBackground="#FFADB5B9" Margin="0,0,0,47">
<DataGrid.Columns>
<DataGridTextColumn IsReadOnly="True" Binding="{Binding}" Header="Name"/>
<DataGridCheckBoxColumn Binding="{x:Null}" ClipboardContentBinding="{x:Null}" />
</DataGrid.Columns>
</DataGrid>
when I click the row (any cell), how can I enable/disable the checkbox in the 2nd column?
Currently I have to double click and I read several articles that discuss the first click puts it into editing mode and the second click checks it.
I've also tried
Style rowStyle = new Style(typeof(DataGridRow));
rowStyle.Setters.Add(new EventSetter(DataGridRow.MouseDoubleClickEvent,
new MouseButtonEventHandler(Row_DoubleClick)));
dataGridShortcuts.RowStyle = rowStyle;
and this didn't work either.