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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top