SqlDataAdapter d = new SqlDataAdapter("select * from test",ConnStr);
DataSet ds = new DataSet();
d.Fill(ds);、//错误的行
  dgProduct.DataSource = ds;
  dgProduct.DataBind();
提示如下:
Exception Details: System.InvalidOperationException: Fill: SelectCommand.Connection property has not been initialized