Home Forums WinForms controls Xceed Grid for WinForms Inserting a row using the Insert row causes frustration for the user. Reply To: Inserting a row using the Insert row causes frustration for the user.

Xceed Support
Member
Post count: 5658

Hi Morgan,

To move the focus onto the newly added row, you should set it as current via the CurrentRow property.

For example:

this.grid.DataRows[ this. grid.DataRows.Count – 1 ].CanBeCurrent = true;

            this. grid.CurrentRow = this. grid.DataRows[ this. grid.DataRows.Count – 1 ];

Imported from legacy forums. Posted by Mohamed [Xceed] (had 227 views)