Home All Groups Group Topic Archive Search About

How to insert a DataTable into a DataSet

Author
4 Jul 2006 5:51 AM
ad
I have a standalnoe DataTable DataTable1, and a DataSet DataSet1.
How can I insert DataTable1 into DataSet1?

Author
4 Jul 2006 6:47 AM
Cor Ligthert [MVP]
Hi Ad,

Very simple

ds.tables.add(dt)

with a ; at the end vor C#

ds = dataset
dt = datatable

I hope this helps,

Cor

Show quote
"ad" <fly***@wfes.tcc.edu.tw> schreef in bericht
news:%234RVg3ynGHA.964@TK2MSFTNGP05.phx.gbl...
>I have a standalnoe DataTable DataTable1, and a DataSet DataSet1.
> How can I insert DataTable1 into DataSet1?
>

AddThis Social Bookmark Button