1
Reply

How to put one dataset into another dataset.

sai charan

sai charan

Jun 18, 2008
5.8k
0

     Using Merge mathod , you can convert to two datasts to one

    as

    DataTable dt = new DataTable("Table");

    dt.Columns.Add("Clm");

    DataSet ds = new DataSet();

    ds.Tables.Add(dt);

    dt = new DataTable("Table1");

    dt.Columns.Add("Clm1");

    DataSet ds1 = new DataSet();

    ds1.Tables.Add(dt);

    ds1.Merge(ds);

    shabbir anjum
    June 18, 2008
    0