DataSet ds=new DataSet();
DataTable dt=ds.Tables[0];   -- 问题出在这句。
new 的DataSet中没有DataTable。应该先给DataSet Fill一个表。