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.