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

Storing a datagrid record to Textboxes.

Status
Not open for further replies.

JMelvin

Programmer
Sep 24, 2002
4
0
0
US
I want to take a selected record from a Datagrid in VB6 and on command1_click load the highlighted record field by field into textboxes?

txtFName = datagrid1.??????

FName is the first column of the datagrid.

Am I even close???
 
Private Sub Command1_Click()
Text1.Text = DataGrid1.Columns(0).Text
Text2.Text = DataGrid1.Columns(1).Text
Text3.Text = DataGrid1.Columns(2).Text
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top