Ant*_*ell 0 c# scroll winforms
所以我在WinForms解决方案中有一个vanilla DataGridView.
当您浏览DataGrid中的单元格时,最终会到达所选单元格只有一半在视图中的点.要查看它,您必须滚动.
那么这显然是我想要自动处理的问题所以问题是......
如何启用我的DataGridView作为用户选项卡自动滚动.
我搜索了一个滚动条索引值或位置值,但似乎找不到任何东西.
DataGrid http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.aspx
我想你正在寻找FirstDisplayedCell控制你的卷轴的东西.
dataGridView1.FirstDisplayedCell = dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells[0];
Run Code Online (Sandbox Code Playgroud)