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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flexgrid and arrow down

Status
Not open for further replies.

Periko

Programmer
Feb 24, 2003
134
BE
Hello,

I'm struggeling with sth stupid.

In the event of the grid .mousedown, i'm performing the filling of another grid. (because leftclick and rightclick of the mouse performs different things).

How can I use the arrow-keys on the first grid, to let this perform the filling of the second grid ? (like a left-mouse-click)

I used .rowcolchange, works for the arrows, but does function twice in case of mouse click.
(in .rowcolchange i call the mousedown-event i made public).
Keypress and keydown on the first grid is not reacting on the arrows.

Who knows the solution ?

Kind regards...
Pedro...
 
You could try subclassing your window and seeing if the grid is selected and an arrow key is being pressed, then run your code.

____________________________________________________________________________
There are only 10 types of people in the world. Those that know binary and those that don't

Brent
 
Thx you guys, your comments made me thinking...

My solution is not the leavecell() but the entercell(). Entercell of the grid makes executing the filling of the other grid with details. Mousedown is only now to check if rightbutton of mouse was pressed to do some other actions and not anymore to execute the filling of the detailgrid on a left click. With leavecell I had always the details of the previous header. Entercell is always correct.

Kind regards...
Pedro...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top