Translate

> > C# Dataset To DataTable Conversion

C# Dataset To DataTable Conversion

Posted on Sunday, May 1, 2011 | No Comments

AccountDataSet.CHART_OF_ACCDataTable cT = new AccountDataSet.CHART_OF_ACCDataTable();
           DAL.AccountDataSetTableAdapters.CHART_OF_ACCTableAdapter cAdapter = new AccountingDigitalOptimize.DAL.AccountDataSetTableAdapters.CHART_OF_ACCTableAdapter();
            cT.TableName = "Accounts";
           cAdapter.Fill(cT);



           /DataSet ds = new DataSet();
           ds.Tables.Add(cT);
           
           
           DataTableReader dReader = ds.CreateDataReader();
          ds.Load(dReader, LoadOption.OverwriteChanges, cT);

Leave a Reply

Powered by Blogger.