首页 > 其他 > 详细

Dtagridview 光标定位最后行的方法 - 转自:jin_yao_chi的博客

时间:2018-04-30 13:11:33      阅读:232      评论:0      收藏:0      [点我收藏+]

定位行:

1.BindingSource.MoveLast();

2.dataGridView1.FirstDisplayedScrollingRowIndex = dataGridView1.Rows. Count-1;

定位单元格:

1.dataGridView1.FirstDisplayedCell = dataGridView1.Rows[xxx].Cells[0];
2.dataGridView1.CurrentCell = dataGridView1.Rows[dataGridView1.Rows.Count-1].Cells[0];
   dataGridView1.BeginEdit(true);

Dtagridview 光标定位最后行的方法 - 转自:jin_yao_chi的博客

原文:https://www.cnblogs.com/YuanDong1314/p/8973128.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!