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!

Selecting row in flexgrid and displaying selected row in Textboxes 1

Status
Not open for further replies.

Stripes1283

Programmer
Jun 13, 2007
28
ZA
Hi there I am trying to select a row in a flexgrid and then displaying the selected row of data in textboxes.
This must all be done in vb6, I have an idea of what to do but not certain as I am new to this. Please assist.
 

How about this:
If your MSFlexGrid1 has 3 columns, and you have txtOne, txtTwo and txtThree text boxes:

Code:
Private Sub MSFlexGrid1_Click()

With MSFlexGrid1
    txtOne.Text = .TextMatrix(.MouseRow, 0)
    txtTwo.Text = .TextMatrix(.MouseRow, 1)
    txtThree.Text = .TextMatrix(.MouseRow, 2)
End With

End Sub

You get the idea.....


Have fun.

---- Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top