Hi,
We have a grid with a add button a the top (see image below).
A click on the add button display the "AddNewRow" at the bottom of the grid :
this.myGrid.AddNewRowSettings.AllowAddNewRow = AddNewRowLocation.Bottom;
But user had to click inside the new row to start editing.
Is there a way to put user directly in edit mode inside the add new row ?
Thanks for your help.
Alain.
Hello Cosoluce Stones,
I have been looking into your post and I can suggest using the following code in the body of the ‘Click’ event of the ‘Add’ button to put user directly in edit mode inside the add new row :
this. myGrid.AddNewRowSettings.AllowAddNewRow = AddNewRowLocation.Bottom;
Row rw = ((RowsManager)this. myGrid.Rows[0].Manager).AddNewRowBottom;
rw.Cells[0].IsActive = true;
myGrid.EnterEditMode();
If you have any other questions, feel free to ask.
Hi Yanko,
Thanks for this solution.
But my problem it that it only works when there is rows in the grid (...this. myGrid.Rows[0]....).
Do you have a solution when there is no rows ?
Thanks.