日期:2014-05-17 浏览次数:20498 次
//①Create a DataSet DataSet ds = new DataSet(); //②Create a DataTable DataTable dt = new DataTable("Table_AX"); //③Add columns for DataTable //Method 1 dt.Columns.Add("NoFound", System.Type.GetType("System.String")); //④Add rows for DataTable //★Initialize the row DataRow dr = dt.NewRow(); dr["NoFound"] = "No Checked,Please Wait!"; dt.Rows.Add(dr); //★Doesn't initialize the row DataRow dr1 = dt.NewRow(); dt.Rows.Add(dr1); //⑤Fill DataSet ds.Tables.Add(dt);