Hi,

I am using VB6. I use Datagrid to list my data from a Dbf file. When i click on a row of Datagrid, it doesn't trabsfer actual data into Textboxes. It transfers previous clicked data into textboxes. What can i do?

Private Sub DataGrid1_Click()
Text3.Text = Adodc1.Recordset("Number")
Text4.Text = Adodc1.Recordset("Name")
Text5.Text = Adodc1.Recordset("Surname")
End Sub

Thanks

solution is DataGrid1_RowColChange

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.