I am using a DataGrid in row selection mode (i.e., SelectionUnit=\"FullRow\"
). I simply want to remove the border that is being placed around the current cell w
The real answer is:
<!-- put it in your cell style -->
<DataTrigger Binding="{Binding SelectionUnit, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" Value="FullRow">
<Setter Property="BorderThickness" Value="0" />
</DataTrigger>
The question was about disabling it only in FullRow selection mode but other answers provide a solution to disable it completely even in cell selection mode.
Answer to a very old question but believe it or not WPF and WinForms is still used nowadays.