DGV垂直滚动条最大值设置问题
This commit is contained in:
parent
329199319e
commit
60e5ff4a79
@ -171,7 +171,7 @@ namespace Sunny.UI
|
||||
|
||||
if (VerticalScrollBar.Visible)
|
||||
{
|
||||
VBar.Maximum = RowCount - 1;
|
||||
VBar.Maximum = RowCount - this.Rows.GetRowCount(DataGridViewElementStates.Displayed) + 1;
|
||||
VBar.Value = FirstDisplayedScrollingRowIndex;
|
||||
VBar.Visible = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user