【问题标题】:The datagridview scrolls updatagridview 向上滚动
【发布时间】:2014-11-08 02:15:58
【问题描述】:

每当我向下滚动时,我的 datagridview 都会自动向上滚动。我不知道为什么。

我试图搜索所有可能的解决方案,但我无法解决。 是否有我应该更改的属性或什么?

【问题讨论】:

  • 您必须展示并告诉我们更多信息!这永远不会自行发生。含义:在某处放了一些代码,就可以了; 我们怎么会知道..??是否触发了一些自动刷新?

标签: c# mysql winforms visual-studio-2010 datagridview


【解决方案1】:

你的问题不清楚。但是如果你想在 DataGridView 中向下滚动(DataGridView 的底部),你必须这样做:

int Count = dataGridView1.Rows.Count;
dataGridView1.CurrentCell = dataGridView1[0, Count-1];

【讨论】:

    猜你喜欢
    • 2013-07-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-26
    • 1970-01-01
    • 2013-04-22
    • 2015-07-17
    相关资源
    最近更新 更多