简体   繁体   English

如何增加DataGridView滚动条的宽度?

[英]How to increase the width of a scroll bar for DataGridView?

有没有办法增加DataGridView滚动条的宽度?

The only way of doing it is by implementing your own control and replacing the one on the DataGridView . 唯一的方法是实现自己的控件并替换DataGridView上的DataGridView I found this on CodeProject(its VB but still a good example): 我在CodeProject上找到了它(它的VB还是一个很好的例子):

Core Custom Scrollbar Class By VectorX VectorX的核心自定义滚动条类

There is also something on the MSDN forums MSDN论坛上也有一些内容

custom scrollbar for datagridview datagridview的自定义滚动条

Both the scrollbars are within the DataGridView's Control collection. 这两个滚动条都在DataGridView的Control集合内。 You can simply get them from there and try alter it. 您只需从那里获取它们,然后尝试对其进行更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM