Buinding in DataGridView
-
Hi all, For Windows Application, I have more than one DataTable in a Dataset, I want to show different columns from diferent DataTable in a row. For Eg: DataTable 1: contains Fiels like 1C1,1C2,1C3 DataTable 2: contains Fiels like 2C1,2C2,2C3 DataTable 3: contains Fiels like 3C1,3C2,3C3 I want to show the record in DataGridView in one row like, 1C1,1C2,1C3,2C1,2C2,2C3,3C1,3C2,3C3 use of Binding And also I want to update all the dataTables back to DataBase. How to achieve this.. Thanks raja
-
Hi all, For Windows Application, I have more than one DataTable in a Dataset, I want to show different columns from diferent DataTable in a row. For Eg: DataTable 1: contains Fiels like 1C1,1C2,1C3 DataTable 2: contains Fiels like 2C1,2C2,2C3 DataTable 3: contains Fiels like 3C1,3C2,3C3 I want to show the record in DataGridView in one row like, 1C1,1C2,1C3,2C1,2C2,2C3,3C1,3C2,3C3 use of Binding And also I want to update all the dataTables back to DataBase. How to achieve this.. Thanks raja
Hi there guess u should use the join method for the three datatables and then display the results after string manipulation or u need to read the values by using a loop and append the values to a stringBuilder (remember to import the System.text) Hope that it helps :) Best Regards 3ala2