自定义datatable

来源:互联网 发布:js监听键盘按键事件 编辑:程序博客网 时间:2024/05/18 02:47

  //DataTable dt = new DataTable();
           //dt.Columns.Add("ID", Type.GetType("System.Int32"));
           //dt.Columns[0].AutoIncrement = true;
           //dt.Columns[0].AutoIncrementSeed = 1;
           //dt.Columns[0].AutoIncrementStep = 1;

           //dt.Columns.Add("Product", Type.GetType("System.String"));
           //dt.Columns.Add("Version", Type.GetType("System.String"));
           //dt.Columns.Add("Description", Type.GetType("System.String"));

           //dt.Rows.Add(new object[] { null, "a", "1", "c" });
           //dt.Rows.Add(new object[] { null, "a", "2", "c" });
           //dt.Rows.Add(new object[] { null, "b", "3", "c" });
           //dt.Rows.Add(new object[] { null, "b", "4", "c" });
           //dt.Rows.Add(new object[] { null, "a", "5", "c" });

0 0
原创粉丝点击