Hi alain,
If you want to make last row as edit row, just select it is not enough. You need to make one of the cells of the last row as the CurrentCell.
For example:
int idx = this.dataGridView1.Rows.GetLastRow(DataGridViewElementStates.Visible);
dataGridView1.CurrentCell = dataGridView1[0, idx]; Now you can see the small arrow on the row header has been moved to the last row.
Please feel free to tell me if you have any question.
Sincerely,
Kira Qian
Send us any feedback you have about the help from MSFT at fbmsdn[At]microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the
All-In-One Code Framework!