Reputation: 2149
I want to merge two or more DataTables Colum by Column. I am developing C# Windows Application. My use case is below:
What is best way to do this? Is there any performance hits with large number of rows typically 1 million?
Please help.
Thanks, Omky
Upvotes: 0
Views: 1138
Reputation: 50752
use DataTable.Merge if you really want to marge datasets
keep empty datatable with id, and each time user add new column, marge first datatable with new datatable containing id and new column
But in your case, I think it will be better to bind full datatable to grid, and change visible of or add remove datagrid column depending user action
Upvotes: 1