Let's say I have a GridView with 1.000 rows. And I don't want any pagination and have all the rows visible. I can do two things:
Set AllowPaging="false" (most logical)
Or
Set AllowPaging="true" and with a higher PageSize than the total rows: PageSize="9999"
So my question is if there is any significant difference in performance between both options and if so, how do you measure something like that.
I have been working for more than 4 years as web developer specifically
asp.netdeveloper. I have widely used datatables.net. It is very powerful,rich of features and evry easy to use.If your gridview has
250 rowsmaxdatatablecan easily digest250 rows. I would recommed you to load250 rowsinitially and when user change number of rows you can simply setoption of datatableto show that many records.Once your
gridviewhas loaded you can applydatatableto it.Here is a little example. here is jsfiddleYou need to set
'pageLength': 25property to decide how many records to display. initially set it to250after user will change the option noserver sidecall will be sent.And use
'lengthMenu'option to show number of records to show.