Gridview paging

I have a gridview with approximately 300-400 rows that I use for reporting; it needs swapping and requires sorting. My choice is between these two parameters: a) load 300-400 in one request and let gridview do paging and sorting; b) handle paging / sorting at the data source level. I know that b) it will be better / faster / more efficient ... In my context, I want to do something relatively quickly; if I choose a) will the page seem incredibly / painfully slow?

Thank.

+3
source share
3 answers

GridView . (, RowNumber), , , , . GridView, .

+2

.

, ASP.NET 2.0 Atlas, GridView ASP.NET 2.0. , 15 , , . .

+1

Although 300-400 rows is not a very large data set, I would probably vote for option B, as it will definitely be more scalable. Once you start receiving massive data, loading all of it with a single request and processing the GridView, the search call will be incredibly slow. The best option is, as you said, only requesting the data needed for each page.

However, if you do not have datasets larger than 300-400 records, you probably do not need to worry too much about load times, but again, the key is scalable.

0
source

Source: https://habr.com/ru/post/1787339/


All Articles