自定义table

DataTable dtTmp = new DataTable();
            dtTmp.Columns.Add("ID", typeof(int));
            dtTmp.Columns.Add("name", typeof(string));
            DataRow dr = dtTmp.NewRow();
            dr["ID"] = "1";
            dr["name"] = "jack";
            dtTmp.Rows.Add(dr);

posted @ 2012-05-14 18:14  丁焕轩  阅读(274)  评论(0编辑  收藏  举报