I have two datatables.
1st table—–> DataTable _dtMain = new COrder().GetDetails();
2nd table—–> DataTable _dtSub = new CGrid().GetSubDetails();
I want to add the above two tables. I am using _dtMain.Merge(_dtSub );
But it will append _dtSub table to _dtMain table. I want datatable to add second table to first table in column wise (that means after first table last column)
After a lot of research , i find out the answer for my question that i posted before. Here is the code for combing 2 datatable & the data inside it.