I have three DataTables in C# called MIT, Oracle and Difference. Could you please let me know how to add these three tables to a gridview as seperate columns? I know how to bind a DataTable to a gridview as given below. But i need the same to be done for several DataTables.Please help
dataGridView1.DataSource = MIT;
Here‘s an image of the GridView.
I think that you should combine your tables into a
DataSetand then use a common column (I presume there is one!) to createDataRelationsbetween the tables. This will allow you to bind yourDataGridViewto the result of a query on theDataSet.For more info: see here.