Discussion:
VB6 MSHFlexGrid - Cursor keys not working
(too old to reply)
RobertTheBruce
2007-01-30 16:37:04 UTC
Permalink
The cursor in the grid is not being updated properly when the cursor
key's (Up, Down, Left, Right) are updated, but it does seem to work in
the MSFlexGrid.

Am I missing something simple?

Rob
Ken Halter
2007-01-30 17:00:44 UTC
Permalink
Post by RobertTheBruce
The cursor in the grid is not being updated properly when the cursor
key's (Up, Down, Left, Right) are updated, but it does seem to work in
the MSFlexGrid.
Am I missing something simple?
Rob
"The cursor in the grid"? What grid? Since the flexgrid is 'read-only',
there is no 'cursor' but the current cell should change when you use the
arrow keys...
--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm
RobertTheBruce
2007-01-30 17:17:42 UTC
Permalink
Hi Ken,
Post by Ken Halter
Rob"The cursor in the grid"? What grid? Since the flexgrid is 'read-only',
there is no 'cursor' but the current cell should change when you use the
arrow keys...
I mean the currrent column or row selected. The grid is mshflexgrid
and there is no 'read-only' property.

The current sell/row is now changing when the use the arrow keys. If
it was i woldn't need to post this message!?

Rob
Jeff Johnson
2007-01-31 14:01:04 UTC
Permalink
Post by RobertTheBruce
The cursor in the grid is not being updated properly when the cursor
key's (Up, Down, Left, Right) are updated,
"the cursor keys are updated"? How do you "update" a key?
Post by RobertTheBruce
but it does seem to work in the MSFlexGrid.
Did you mean "doesn't"?

Slow down. Retype your question and proofread it. I can't make heads or
tails of what you're asking.
RobertTheBruce
2007-02-01 12:12:47 UTC
Permalink
Hi Jeff,

It made perfect sense, and never rushed anythig!

Anyway, here's some more info to help!

I need to replace an MSFlexGrid with MSHFlexGrid component because I
want to make UN-Bound MSFlexGrid Bound to a RecordSet, but
unfortunately the MSFlexGrid compoment does not support an ADO/ODBC
connection, where as the MSHFlexGrid component does.

Now, my in the MSFlexGrid I have sets the SelectionMode to
flexSelectionByRow, to select the entire row in the grid, and other
that no other code has been added, and when I run the application and
move the Up and Down the row selected in the grid moves up and down
accordingly.

But if I repeat this with the MSHFlexGrid component, I can not get it
work!?

Rob
RobertTheBruce
2007-02-01 12:37:28 UTC
Permalink
To All,

Found the problem. It turns out that I hadn't set SelectionMode to
flexSelectionByRow on the MSHFlexGrid component.

Anyway it's now working.

Rob

Loading...