We want to set padding in a WPF datagrid which is done as follows. However when we select a particular row, white space appears between the cells of the selected row. How can we give padding and also make the white space disppear on datagrid row selection.
<Style TargetType="DataGridCell">
<Setter Property="Padding" Value="2 0 2 0"/>
</Style>