I need to be able to add a new row if the user presses enter, or a tab at the entd of the last cell. When the new row is added, the focus should be on the first row of the added row.
I have added something like FixedAddRowOnTop for the AllowAddNew properties, but it does not add a new row on enter, if the new row is added the focus is not gone to the first cell of the row.
May be it will help you.
http://forums.infragistics.com/forums/p/35123/202007.aspx
Hi ,
I have the seme issue, Could me please help me out.
Thanks
Subbu.
Found it, thanks!
Using FixedRowOnTop works if the cursor is at the end of the row, which means if only the last cell is selected.
But I want to creat a new row if the user presses enter or presses the tab key at any cell and then move the cursor the beginning cell of the new row. I know that I should trap the key down, but then what method to call to create a new row and then what method to call to go to the first row?
When at the end of the row, if I press the tab it create a new row but the last row is focused!
If AllowAddNew is set to FixedRowOnTop and I edit any field in the row and press Enter, the row is committed and a new FixedAddRow is created and the focus moves to the first cell in the row. If that's not happening for you, then something else in your code must be changing this behavior.
Can you duplicate this in a small sample project?