有问题的DataGridView和滚动位置 [英] Problem with DataGridView and scroll position
问题描述
我的面板内一个DataGridView控制。面板的尺寸是固定的,自动滚动已启用。的问题是,在完成编辑的小区(由pressing输入或点击另一小区)在面板的两个滚动后(水平和垂直间将重设到开始位置)。这是非常不方便。如何可以解决吗?
I have a DataGridView control inside the Panel. The size of the panel is fixed and AutoScroll is enabled. The problem is that after finishing editing a cell (by pressing Enter or clicking on another cell) the both scrolls of the panel (horizontal and vertical are reseted to start position). This is very inconvenient. How it can be fixed?
推荐答案
为什么你使用的DataGridView的面板? DataGridView中有自己的滚动条。 如果你必须使用它的面板,自动滚屏设置为禁用和码头的DataGridView里面。
Why you using DataGridView in Panel? DataGridView have own scrollbars. If you must use it in Panel, set AutoScroll to disabled and dock DataGridView inside.
这篇关于有问题的DataGridView和滚动位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!