Adding Columns in a DataTable

I want to add columns in a DataTable from a DataSet. The stored procedure that I have created extracts some values of a field, which is stored in a DataSet. Now I want to Create Columns of those Fields in my DataTable. How can I accompalish this??
Thanks in Advance
[274 byte] By [maverick786us] at [2007-11-20 11:05:02]
# 1 Re: Adding Columns in a DataTable
If you just wanna add a new column into DataTable, do like this: DataTable dt = new DataTable();
dt.Columns.Add("NewColumn", Type.GetType("System.String"));

Apparently you wanna add more than one column, and according to another dataset. So you could loop that dataset and get column name and data type to add into destination DataTable.
jasonli at 2007-11-9 11:53:57 >