G
Guest
H
I would like to select data from two (or more) source tables, and show the data in a grid where the data is in the same row of the grid. (Windows Forms
So, if we have a database with a company and an address table, like this
company: companyId, name, phone, fa
address: addressId, companyId, address, country, zipcod
The grid should have the fields from these two tables like this
Grid: name, phone, fax, address, country, zipcod
These fields should be in the same row, and the user should be able to edit and save changes
To get the data into one datatable, I made a query that joins the source tables and returns a datatable that is shown in the grid
The question I would like to ask is: "How do I update the source tables from this edited datatable
Thank you in advance
-Christian
I would like to select data from two (or more) source tables, and show the data in a grid where the data is in the same row of the grid. (Windows Forms
So, if we have a database with a company and an address table, like this
company: companyId, name, phone, fa
address: addressId, companyId, address, country, zipcod
The grid should have the fields from these two tables like this
Grid: name, phone, fax, address, country, zipcod
These fields should be in the same row, and the user should be able to edit and save changes
To get the data into one datatable, I made a query that joins the source tables and returns a datatable that is shown in the grid
The question I would like to ask is: "How do I update the source tables from this edited datatable
Thank you in advance
-Christian