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!

MSHFlexGrid click event

Status
Not open for further replies.

davem1958

Programmer
Oct 10, 2001
17
US

This seems like a simple question, but...

I want to trap the Click event in a heirarchical flexgrid, and show the full text of one cell in that row -- if it is a row.

How can I tell the difference between a Click somewhere on the grid and a click on a row? Also, two clicks in sequence on the same row should perform this action, so it's possible none of the Change events will be fired, which makes SelChange etc. useless.

Dave.
 
I haven't used MSHflexGrid, but in MSFlexGrid I would try using .MouseRow or .Mousecol in a MouseDown or MouseUp Event to ID a click.

Hope this helps

Bob
 
That's what I was looking for...don't know how I missed it.

Dave
 
With MSHFlexGrid1
MsgBox "ROW " & .Row & " COL " & .Col & " " & .TextMatrix(.Row, .Col) & " " & .MouseRow & " " & .MouseCol
End With
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top