How to remove the auto added column (HeaderRole=Padding) in WPF GridView

Posted by dnr3 on Stack Overflow See other posts from Stack Overflow or by dnr3
Published on 2010-12-29T09:53:54Z Indexed on 2010/12/29 10:53 UTC
Read the original article Hit count: 200

Filed under:
|
|

Hi,

I'm trying to make a custom gridview in WPF but I just realized that as this link says:

The GridViewHeaderRowPresenter class performs layout for the column headers in a GridView and places an additional column header at the end to add space

and because of the additional column header at the end, there's an extra column to the right of the last column. so I was wondering if I can modify it, please refer to this image below image

My questions are:

  1. Is there anyway I can remove the 'A' part from the grid?
  2. Is there anyway I can add the same effect of 'B' part (the role = padding header) to the 'C' Part (before the first column)?

Thanks

© Stack Overflow or respective owner

Related posts about wpf

Related posts about xaml