求GridView的记录条数的方法有很多,根据各自的不同而需要采用不同的方法。 在没有使用Datasource的情况下,我需要在后台程序中求得,因为用dataset绑定的GridView数据,所以,我使用的方法如下: int num = ds.Tables[0].Rows.Count; |
求GridView的记录条数的方法有很多,根据各自的不同而需要采用不同的方法。 在没有使用Datasource的情况下,我需要在后台程序中求得,因为用dataset绑定的GridView数据,所以,我使用的方法如下: int num = ds.Tables[0].Rows.Count; |