Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 DataPager 控件,我想更改每页上的计数项目。
例如:第一页6行,第二页311,第三页12等。
可能吗?如果是这样,怎么做?
我的建议是手动进行,进行自己的 sql 查询并根据需要自定义页面大小
这里有一些可以提供帮助的提示
MS-sql 行号
使用 TOP 获取上面的一组行
选择 TOP 5 * from ....
当然,您需要获取将在当前页面中显示的特定行号
select (--get row number--) from tbl_smth where row_num>5 and row_num<10
就像我猜你有一个数组中的页面大小,所以你必须计算它们以确定两个数字 {5,10}
希望这会有所帮助