Welcome to the Xceed Community | Help
Community Search  
More Search Options

Shortcuts to up / down navigations

Sort Posts: Previous Next
  •  07-02-2009, 10:28 AM Post no. 22223

    Shortcuts to up / down navigations

    Hello,

     I want to add another keyboard options to the up/down/right/left navigations.

    Suppose that I want that the w key will be like 8 key, and s will be like 2 key. I mean that w will travel up to the upper row, and s will travel down to the next row.

     

    Thanks...

    Filed under:
  •  07-03-2009, 12:31 PM Post no. 22257 in reply to 22223

    Re: Shortcuts to up / down navigations

    The paging (e.g., page up, down, home) keys are handled in the grid's OnKeyDown override while the navigation keys (e.g., right, left) are handled in the OnPreviewKeyDown override. That said, if you want to inject yourself into this behavior you have 2 options:

    1- Derive from DataGridControl and override the OnPreviewKeyDown event to do your handling either before or after the base implementation is called.

    2- Handle the DataGridControl's PreviewKeyDown event, which will be raised by the OnPreviewKeyDown method and only after the built-in navigation mechanism has been done. 


    Senior Technical Writer
    - Xceed Software

    In three words I can sum up everything I've learned about life: it goes on.
  •  07-05-2009, 4:59 AM Post no. 22267 in reply to 22257

    Re: Shortcuts to up / down navigations

    Thanks. it was very helpful
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.