How to add one table data into another table in a dataset.
-
Hi all, i want to know, How to store data from one table to another table in a dataset. * ex: dataset contains 2 tables. one table has data, other is empty. thanks
-
Hi all, i want to know, How to store data from one table to another table in a dataset. * ex: dataset contains 2 tables. one table has data, other is empty. thanks
Clones the structure of the DataTable, including all DataTable schemas and constraints. DataTable newTable =ds.Tables[0].Clone(); Iterate through the dataset assign data to new table newTable.Rows.Add(ds.Tables[0].Rows[0]); add new table to Dataset ds.Tables.Add(newTable);
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "