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
245
Stop Wraparound on keyboard cell navigation
posted

Can someone advise on how I can avoid the wraparound on UltraGridAction.NextCell or NextCellByTab so that it doesn't move to the first cell on the next row on reaching the last one on the current row?

Same for avoiding to move to the previous row's last cell on doing a left on the first cell in a row.

 

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    The default 'NextCell' mapping for the right arrow key has 'InEdit' as its only disallowed state. You might be able to get the behavior you describe here by adding 'LastCell' to that. The control exposes all of its keyboard functionality through the KeyActionMappings collection; you would have to iterate that colleciton, find the mapping, and OR the bit for 'LastCell' into the value of the KeyActionMapping's DisallowedState property.

Children