Can somebody please shed some light on how to get rid of the mysterious padding on the left? I've tried numerous properties but none seem to affect.
The padding you are referring to is probably the row header. To remove the row headers, you can set HeadersVisibility="Column"
on the DataGrid
.
I have seen cases where even with this property set to "Column" some of the rows still show a header. You can work around this by setting RowHeaderWidth="0"
on the DataGrid
.
I cannot say where the extra padding is because you haven't provided any code. It might be somewhere in the style of the grid.
In such cases the Snoop utility can be very useful: http://snoopwpf.codeplex.com/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With