1、DataTable添加行的方法方法一:DataTabletblDatas=newDataTable("Datas");DataColumndc=null;dc=("ID",(""));=true;//=1;//=1;//=false;//dc=("Product",(""));dc=("Version",(""));dc=("Description",(""));DataRownewRow;newRow=();newRow["Product"]="水果刀";newRow["Version"]="";newRow["Description"]="打架专用";(newRow);newRow=();newRow["Product"]="折叠凳";newRow["Version"]="";newRow["Description"]="行走江湖七武器之一";(newRow);方法二:DataTabletblDatas=newDataTable("Datas");("ID",(""));[0].AutoIncrement=true;[0].AutoIncrementSeed=1;[0].AutoIncrementStep=1;("Product",(""));("Version",(""));("Description",(""));(newobject[]{null,"a","b","c"});(newobject[]{null,"a","b","c"});(newobject[]{null,"a","b","c"});(newobject[]{null,"a","b","c"});(newobject[]{null,"a","b","c"});2、添加一个表的时候在数据库里面添加了一个新表那么
总结起来的东西集合 来自淘豆网m.daumloan.com转载请标明出处.