Use the same datasource....
I have a Grid and textboxes on a form. When a name is selected from the grid, the textboxes then show all the information regarding that user.
I.E.
Datagrid
DataSource: dsEmployees.
DataMember: EmployeeInformation
This then shows all employees in the EmployeeInformation table in the dsEmployees dataSet.
Textboxes
txtEmployeeName: (coded at runtime) me.txtEmployeeName.databindings.add("Text", dsEmployees, "EmployeeInformation.FullName")
txtJobTitle: (coded at runtime)
me.txtJobTitle.databindings.add("Text", dsEmployees, "EmployeeInformation.JobTitle")
As I highlight each row in the grid, the name and job title in the text boxes change accordingly.
regards,
Luke
(This is in my 1.1 application, I'm now upgrading all my apps to 2.0)