Question How can i display data from datagrid into texboxes?

suryatiakz

Member
Joined
Oct 2, 2010
Messages
7
Programming Experience
Beginner
i am working on my search button, and successfully the data can be display in datagrid. Now i have problem to display the data into textboxes by clicking on the datagrid.

i use Microsoft access for my database.
 

Attachments

  • search .txt
    2.9 KB · Views: 22
Simply bind the same data to the grid and the TextBoxes, e.g.
VB.NET:
myDataGridView.DataSource = myDataTable
myTextBox.DataBindings.Add("Text", myDataTable, "ColumnName")
 
Back
Top