问题
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?
回答1:
dgv2.CurrentCell = dgv2(0, dgv2.Rows.Count - 1)
来源:https://stackoverflow.com/questions/10641749/datagridview-can-focus-be-placed-on-the-blank-row-with-the-using-code