When the user presses ENTER to accept current new row, I want to immediately start the process of adding a new row. Basically, the AddRow remains active after pressing the ENTER key.
I can't seem to find a property or the appropriate event where to reactivate the TemplateAddRow, and put it in edit mode.
I'm using UltraGrid 9.2
The first cell is NoEdit. I found a workaround by catching the Enter Keyup event and calling the PerformAction and passing NextCellbyTab with only the editable fields set to have TabStop.
Hi,
I would think the grid would do this automatically. It might depend on how and why the cell is not editable.
How are you making the cells read-only? If you are using Activation or CellActivation, then which Activation setting are you using?
If the cell is disabled, it should certainly skip that one.
If it's just NoEdit or ActivateOnly, then you might also need to set TabStop on the column to false.
If none of that works, let me know, and I will see if I can find a way to code it.
I found the offending code. However, is there a way to tell the grid to go to the first EDITABLE cell and not just first cell?
Okay, I'm a little confused. I tried this out using FixedAddRowOnTop and the behavior you want appears to be the default behavior of the grid.
When I type something into the TemplateAddRow and press enter, the data I just entered moves down into a new row below the TemplateAddRow.
The cursor moves into the first cell in the TemplateAddRow and the cell goes into edit mode.
Is that not the behavior you are getting? If not, my best guess is that something in your code is changing the focus. I would check and see which grid events you are handling and check the code there to make sure you are not setting focus to another row in your code.
If that is the behavior you are getting and you want something else, then please let me know what, exactly, you want to change.
I'm using FixedRowOnTop.
By the way, when the user moves away focus from the AddRow, it should proceed as is. Only when the user presses the ENTER key is when I want it to go to add mode immediately.