DataTable dt = new DataTable("MyTable"); DataRow dw = dt.NewRow(); DataColumn dc = new DataColumn(); dc.ColumnName = "make"; dt.Columns.Add(dc); dw["make"] = "jodan"; dt.Rows.Add(dw); foreach (DataRow row in dt.Rows) { Response.Write(row["make"]); }
原文地址:http://www.cnblogs.com/llcdbk/p/3858715.html