DataGridView中不显示水平滚动条 [英] Horizontal Scrollbar is not visible on DataGridView

查看:2055
本文介绍了DataGridView中不显示水平滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Window窗体中有一个$ code> DataGridView ,它填充了30列和数千行。
ScrollBars 属性设置为两者,但仍然是水平滚动条不可见。即使我无法用键盘上的箭头键滚动。

I have a DataGridView on Window form which is populated with 30 columns and thousands of rows. ScrollBars property is set to Both, but still horizontal scroll bar is not visible. even I am unable to scroll with arrow key from keyboard.

我通过将 ScrollBars 属性设置为水平,但这并没有任何区别。

I tried it by setting ScrollBars property to Horizontal as well, but that does not make any difference.

有什么建议吗?

谢谢

推荐答案

好吧,它的整理。

我正在回答我自己的问题;

I am answering my own question; it may help someone in future.

其中一列具有冻结属性设置为 True 。对于所有列,应为 false
现在ScrollBar对我来说是非常好的。

one of the columns has Frozen property set as True. which should be false for all columns. Now ScrollBar is working absolutely fine for me.

干杯

这篇关于DataGridView中不显示水平滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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