Passing on PageUp/PageDown keys from a DataGrid to the object it's

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want a datagrid object that will not intercept PageUp or PageDown
keystrokes so that instead the tabcontrol it's on can pick it them up and
change TabPages. Any idea how to create a new version of the datagrid that
will do this?
 
You can enable keypreview on the form. Then in the keypress event check to
see if the pageup/pagedown event takes place. If it does, move your tab
pages accordingly around.

Chris
 
Back
Top