如何在asp.net中通过gridview显示大量数据,而不从数据源中选择整个数据?

时间:2022-06-17 21:01:38

how can I create a query in order to select some records every time user wanna to display them into a gridview. I don't want to select all entire records from my data source. What I exactly want is to simulate pagination by query.

如何创建查询,以便每次用户想要在gridview中显示一些记录时选择它们。我不想从数据源中选择所有的记录。我真正想要的是通过查询来模拟分页。

Thank you

谢谢你!

1 个解决方案

#1


2  

Have a look at

看一看

Efficient Paging for GridView

高效的分页显示数据表格

#1


2  

Have a look at

看一看

Efficient Paging for GridView

高效的分页显示数据表格