Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSflexGrid Keydown vbkeyleft, right arrow keys 1

Status
Not open for further replies.

Chance1234

IS-IT--Management
Jul 25, 2001
7,871
US
Got a feeling im missing the obvious, but on my keydown event on a msflexgrid i haev events for vbkeyleft, vbkeyright etc but they dont seem to be reconised when the code is run , however things such as vbKeyHome, vbKeyEnd, vbKeyPageUp are.



Filmmaker, gentlemen and East end club promoter



 
Taken from Microsoft Knowledge Base Article - 171733:

PRB: FlexGrid Control Doesn't Trap Arrow Keys
This article applies to…
This article was previously published under Q171733
SYMPTOMS
The KeyUp and KeyDown events of the Flexgrid control do not trap the Arrow keys. This affects the arrow keys on the numeric keypad as well as the "stand-alone" arrow keys.
CAUSE
The Flexgrid control responds to the arrow keys to change the selection, therefore they are not passed to the key events.
RESOLUTION
There are no workarounds at this time.
STATUS
This behavior is by design.
MORE INFORMATION
 
You might want to consider RowColChange, LeaveCell, or/and SelChange events to control navigation.

 

Why not just swap the MSFlexGrid out for the MSHFlexGrid?
(However, if you use the DataSource property, then you will need to use ADO with it)
 
For me this is mandatory thing anyway. MSFlexGrid suffering from it's "hell dll". MSHFlexGrid is clean.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top