How do I add a new DataColumn
to a DataTable
object that already contains data?
PseudoCode
//call SQL helper class to get initial data
DataTable dt = sql.ExecuteDataTable("sp_MyProc");
dt.Columns.Add("MyRow", type(System.Int32));
for(DataRow dr in dr.Rows)
{
//need to set value to MyRow column
}