关于创建虚拟表的小心得

 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"]);
            }
posted @ 2014-07-21 16:35  洛晨随风  阅读(193)  评论(0编辑  收藏  举报