I have a DataSet ds
which contains 10 DataTables, each have one column only. How to make a DataTable
that contains all the columns from DataSet ds
?
public static DataSet ReadXmlUsingBufferedStream(string pathOfXMLFile)
{
DataSet ds = new DataSet();
ds.EnforceConstraints = false;
if (File.Exists(pathOfXMLFile))
{
using (FileStream filestream = File.OpenRead(pathOfXMLFile))
{
BufferedStream buffered = new BufferedStream(filestream);
ds.ReadXml(buffered);
}
}
ds.EnforceConstraints = true;
return ds;
}