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!

Context menu with MS Flex Grid?

Status
Not open for further replies.

tg2003

IS-IT--Management
Feb 6, 2003
270
IL
Is it possible?

The only option I see now is to custom the "mouse down" event, and calculate the row by the Y position.

Do you know for something better?
Should I use other grid?

Manu thanks!
 
That's pretty much how I'd do it except I'd use MouseUp as this is more typical behaviour.

Hope this helps

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
You are right.

I see here with the IE that the "mouse up" is the used one.

Thanks!
 
The only option I see now is to custom the "mouse down" event, and calculate the row by the Y position.

Try this...

Code:
Private Sub MSFlexGrid1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
   
Debug.Print MSFlexGrid1.MouseRow  ' < There's your row
Debug.Print MSFlexGrid1.MouseCol
   
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top