It is quite
common to use checkbox in a datagrid. To make our
lives easier the WPF DataGrid has a class called DataGridCheckBoxColumn to easily add a column in your datagrid a checkbox column format. However, this class has
a drawback behavior that makes the user have to click twice on the checkbox
inside the datagrid to select it. Unfortunately there
is no property (up to the moment of publishing this post) that makes this
boring behavior abolished.
But all is
not lost, you'll see in this minipost with few lines
of code how you can customize your datagrid to create
a column that contains checkbox to be selected with a single click!