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.
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.