如何从wpf中的数据网格中删除滚动条 [英] How to remove a scroll bar from the data grid in wpf

查看:74
本文介绍了如何从wpf中的数据网格中删除滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





当数据网格为空时,我在数据网格中有一个滚动条。但是当我们在数据网格中添加任何内容时,滚动条会消失。所以即使数据网格最初是空的,如何让滚动条消失。





请给我一个解决方案?br />




使用WPF(XAMl)

解决方案

参考



wpf-datagrid-horizo​​ntal-scrollbar-issue [ ^ ]

hi,

i have a scroll bar present in the data grid when the data grid is empty. But when we add anything in the data grid ,the scroll bar disappears. so how to make the scroll bar disappear even when the the data grid is initially empty.


Please provide me a solution ?


Am using WPF(XAMl)

解决方案

Refer

wpf-datagrid-horizontal-scrollbar-issue[^]


这篇关于如何从wpf中的数据网格中删除滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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