How to insert a DataTable into a DataSet

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I have a standalnoe DataTable DataTable1, and a DataSet DataSet1.
How can I insert DataTable1 into DataSet1?
 
Hi Ad,

Very simple

ds.tables.add(dt)

with a ; at the end vor C#

ds = dataset
dt = datatable

I hope this helps,

Cor
 
Back
Top