-1

this is the code for merging the two datatable : dt_merged.Merge(dt)

Paul
  • 4,160
  • 3
  • 30
  • 56
ANNE
  • 25
  • 6

1 Answers1

0

In C# is: (Just convert to VB Syntax)

dt1 = new DataTable();
dt2 = new DataTable();
dt1.Merge(dt2);

grid.DataSource = dt1;

Replace the dt1 and dt2 by loading from your database.

https://msdn.microsoft.com/en-us/library/wkk7s5zk%28v=vs.110%29.aspx

This might be duplicated, you can check in this link: Merging 2 data tables in vb.net

Community
  • 1
  • 1
Roger Oliveira
  • 1,589
  • 1
  • 27
  • 55