且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用分页计算gridview的总行数

更新时间:2023-02-06 07:49:32

是的,没错,它只会返回当前页面行.如果您真的想获取总行数,则需要从数据源获取.

yes, that's true, it will only return the current page rows only. If you really want to get the total row count, you need to get from your datasource instead.

就像...如果你有 DataTable 那么它会像...

Like... if you have DataTable then it will be like...

DataTable.Rows.Count