DataTable DtAudit = new DataTable("AUDIT"); DataSet ds = null; ds.Tables[0].PrimaryKey = new DataColumn[] { ds.Tables[0].Columns["AR_Code"] }; DtAudit.PrimaryKey = new DataColumn[] { DtAudit.Columns["AR_Code"] }; DataSet dsNew = new DataSet(); dsNew.Merge(ds); ds.Merge(DtAudit);
DataTable DtAudit = new DataTable("AUDIT"); DataSet ds = null; foreach(Datacloumn dc in DtAudit) { ds.Tables[0].columns.Add(dc) }
Load
oTable1.Load(oTable2.CreateDataReader())
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)