DataGridView - 可以使用(*)使用代码将焦点放在空白行上吗? [英] DataGridView - Can focus be placed on the blank row with the (*) using code?
本文介绍了DataGridView - 可以使用(*)使用代码将焦点放在空白行上吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在数据网格视图中,有一个空格行(*),允许用户插入新的数据行。
On a data grid view there is a blank row with a (*) in it that allows the user to insert a new row of data.
是否有即使数据网格视图中已经加载了很多行,也可以使用代码来重点关注该行。
Is there a way to put focus on that row using code even though the data grid view has many rows already loaded in it?
推荐答案
dgv2.CurrentCell = dgv2(0, dgv2.Rows.Count - 1)
这篇关于DataGridView - 可以使用(*)使用代码将焦点放在空白行上吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文