How do I pass Datatable to another form?

  • Thread starter Thread starter J Vallee
  • Start date Start date
J

J Vallee

Guest
Newbie (3rd week of learning c#)

I have a form with a datagridview, and the user selects a single record.

In the ok_onclick function(method?) of the first form, I execute a query based on selection and place the entire row into a datatable. I can see the data so I know the query was successful.

Now I need to open a second form and populate the textboxes on it with the contents of the datatable created by the ok_onclick function on the previous form.

It appears I must add something in the second form's code in order to assign the datatable's values to each textbox.. but what and where?

Continue reading...
 
Back
Top