在DataTable数据类型最后增加一列,列名为“Column”,内容都为“AAA”
DataTable dt = new DataTable(); dt.Columns.Add("Column", typeof(string)); foreach (DataRow dr in dt.Rows) dr["Column"] = "AAA";
DataTable dt = new DataTable(); dt.Columns.Add("Column", typeof(string)); foreach (DataRow dr in dt.Rows) dr["Column"] = "AAA";