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"]); }
关于创建虚拟表的小心得
时间: 2024-10-09 23:19:14