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
140
TemplateAddrow - Begin Edit
posted

I am trying to have the grid's templateaddrow first cell go into edit mode.

 

Code:

grid1.ActiveCell = grid1.Rows.TemplateAddRow.Cells(0)

grid1.PerformAction(UltraGridAction.EnterEditMode)

 

The code just select the entire templateaddrow.  What am I missing?

 

Note:  All of the cells in the grid allow editing. 

  • 20872
    Offline posted

    Hello Jason,

    I have tried with the very same code and it works as expected. I think that you are executing it too early in the application lifecycle, and that's why the cell is not in edit mode.

    You could try using the Form_Shown event for doing this, and you would get the desired results.

    If you have any questions please feel free to let me know.