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

loading from an MSHFlexGrid

Status
Not open for further replies.

rene316

Programmer
Jan 14, 2002
81
US
Hello,
I have a form that has a flex grid on it. I would like to be able to either click or double-click on the cell and have the data load onto a form or click the cell and hit a load button to load the data onto a form. How would I go about this? Would I just reference the cell or can it not be done?

thx in advance,
Rene
 
First of all make sure AllowBigSelection = False and SelectionMode = flexSelectionFree. Here's how you would extract the text from a cell:
Code:
Private Sub Grid_EnterCell()
    MsgBox Grid.TextMatrix(Grid.Row, Grid.Col)
End Sub
You could put that in your _DblClick() event or any other event as well.
 
Supra, aint it better to use the click event for this? do u have any particular reason why u selected the EnterCell? All the Best
Praveen Menon
pcmin@rediffmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top