I am using UltraGrid for a data entry form as most of the KeyPunching guys demands that enter key must act like TAB key. I tried to achieve it with the help of following article. But still enter key is getting the cursor next column of the next row instead of next column of the same row, 2ndly at last column it must go to the next row, either to enter new record or on existing record for editing. I hope you got my point.
Thanks for all previous supports.
Regards AHK
All of this behavior is controlled by the KeyActionMappings of the grid. I really can't say exactly what you need to do to get the behavior you want. But what I would recommend is looping through the existing KeyActionMappings collection of the grid and displaying them. Look for mappings for the Tab key and see what they are doing. Also, make sure there are no mappings for the Enter key already in the list that you may not want. There are different mappings for moving to the next cell - for example, there's NextCell and NextCellByTab and they have different behavior. One might wrap to the next row while the other does not, so you wil need to check the documentation or experiment with these to see what they do.
Also, I'm pretty sure that the SamplesExplorer for the grid has a sample of KeyActionMappings that lists the existing ones and allows you to perform an action, so you can experiment and see what they do.
Thanks for the hint, i got the detail of KeyActionMapping, please help me further.
I want the enter key should work like tab but at the end of row .. (at the last col of the row) it should go to the next row. presently it goes to next row even if currently on 1st col of the row.