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
105
Moving to different cell when using UltraControlContainerEditor
posted

Hi,

I'm using an UltraControlContainerEditor to host a custom build numeric textbox within cells of my WinGrid. When in edit mode on the textbox I can switch to the previous/next cell by using the (Shift)TAB key, however I'm struggling to work out how to move cell via the up/down/left/right keys when in edit mode.

What I'm looking for is for Up\Down keys to exit edit mode and move to next cell. Left\Right keys should move cursor within cell contents until it reaches the end, at which point it should exit edit mode and move to next cell.

I would appreciate any help people could give with this.

Thanks

Paul

 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Paul,

    The arrow keys do not navigate between cells in the grid while the cell is in edit mode. This is true of any cell, not just one with an UltraControlContainerEditor.

    I think the only way to do this would be to have your control handle it. I think all you would have to do is trap for the key strokes in your control and then call PerformAction on the grid to first exit edit mode and then to navigate via NextCell, PrevCell, AboveCell, or BelowCell.

    This, of course, means that your control would need to be able to access the grid, which is probably not ideal, but I don't see any other way.

Children
No Data