开发者

DataGridView scrolling behaviour

开发者 https://www.devze.com 2023-01-31 11:49 出处:网络
I have a DataGridView which has vertical and horizontal scrollbars. When I scroll it vertically it is not possible to make any of rows to be partially visible. In other words: scrollbarPosition % rowH

I have a DataGridView which has vertical and horizontal scrollbars.

When I scroll it vertically it is not possible to make any of rows to be partially visible. In other words: scrollbarPosition % rowHeigth == 0 at all times. But when i scroll horiz开发者_StackOverflowontally DataGridView does not behave this way. Column can be partially visible. How can I make it impossible?


DataGridView was not designed that way.
It's completely impossible, unless you rewrite substantial portions of the control.

Most grid controls, including Excel, Access, and Outlook, as well as most if not all 3rd-party .Net grids, have the same limitation.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号