SqlConnection conn = new SqlConnection(strCon);
conn.Open();
string sql = "select count(学号)as人数 from 学生表"
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
checkview.DataSource = ds.Tables[0].DefaultView;
checkview.DataBind();
cmd.Dispose();
conn.Close();
conn.Dispose();
这是我的程序,为什么GridView不显示呢