下面是显示 GridView得所有数据的代码。 DataTable ProjectManagerDT = MyWeb.MyData.GetDBList("ProjectManager");
this.GridView1.DataSource = ProjectManagerDT;
this.GridView1.DataBind();
this.GridView1.DataSource = ProjectManagerDT;
this.GridView1.DataBind();
gridview1.Rows.Count //二种方法但GridView 要注意分页的情况
int m = GridView1.Rows.Count;
//显示:
Label1.Text = m.ToString();