Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4040
Add new row - editing mode
posted

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.

 

Parents
No Data
Reply
  • 35319
    posted

    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.

     

     

      

Children