DataTable dt;
DataRow dr;
DataSet ds= new DataSet();
SqlConnection myconn = new SqlConnection(ConfigurationSettings.AppSettings["connstring"]);
myconn.Open();
da.SelectCommand.CommandText="select * from table1";
da.SelectCommand.Connection=myconn;
da.Fill (ds,"orderdetail");
dt = ds.Tables["orderdetail"].DefaultView;         //提示出错的行;
dgorderdetail.DataSource=ds.Tables["orderdetail"].DefaultView;
dgorderdetail.DataBind();出错的提示为:xsdd.aspx.cs(69): 无法将类型“System.Data.DataView”隐式转换为“System.Data.DataTable”
请问这是什么问题呢?