DataGrid: Headers and data columns not lined up.

Feb 24, 2010 at 9:10 PM

I keep getting this button in the header, I can click on the button to select all rows. This misaligns the data from the header. Any ideas?


Mar 1, 2010 at 9:46 PM

I am having this problem too.  Not sure what the problem is, but I am sure it is something stupid that I've overlooked.  

Anyone know what this is?


Thank You


Mar 1, 2010 at 11:14 PM

For me the problem was caused by the Margin setting on the default style for buttons.

I solved it by starting with the code from this article:

For the section maked <!--Left Column Header Corner --> in his sample resource dictionary I added [Margin="0"] to the Button.