如何删除WPF GridView中的自动添加列(HeaderRole = Padding) [英] How to remove the auto added column (HeaderRole=Padding) in WPF GridView

查看:165
本文介绍了如何删除WPF GridView中的自动添加列(HeaderRole = Padding)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在WPF中创建一个自定义的gridview,但我只是意识到这是



检出ClipToBound属性....


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

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

解决方案

Sorry , I think u might have solved problem but still, http://msdn.microsoft.com/en-us/library/system.windows.controls.gridviewcolumnheader.aspx

Check out ClipToBound Property ....

这篇关于如何删除WPF GridView中的自动添加列(HeaderRole = Padding)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆