摘要:
1.DataTable empTable = new DataTable();注释:定义了一个内存中的表empTable。2.empTable.Columns.Add("ID", Type.GetType("System.String"));注释:函数原型:public DataColumn Add(string columnName, Type type);添加一个列名为“ID”,其对应的类型为“System.String”的列。这属于设计表的范畴。3.empTable.Rows.Add(dataRow);注释:向表empTable添加一行,其中dat 阅读全文
posted @ 2012-06-26 19:45
SuperBug
阅读(3572)
评论(0)
推荐(0)