Can anyone think of a way where you can get a WinGrid to page up and down when you hit the pageup/pagedown buttons, but not having to select on the grid itself before so?
I want to hard-wire the page up and page down buttons to the grid, and ONLY the grid. So the page up and page down buttons have to be evaluate by the key-press event, then ONLY control the grid.
If there is a way to write a line of code to perform the equivalent of a page up or page down, but programmatically, then I can do that after I evaluate the key press.
Any thoughts? Anyway to programmatically control the grid scrolling? Can I do something like
UltraGrid1.Scoll.Up
UltraGrid1.Scoll.Down
Any help or suggestion would be appreciated.
Jon
I figured it out... PerformAction() does it.
Hi Jon,
I believe you are looking for grid.ActiveRowScrollRegion.Scroll method. It takes in row scroll action to indicate page up/down etc...
Hope this helps,
Sandip