Gridview - Is it necessary to grab data from database every time a filter, sort, or paging event occ

Posted by hamlin11 on Stack Overflow See other posts from Stack Overflow or by hamlin11
Published on 2010-05-13T18:54:21Z Indexed on 2010/05/13 19:04 UTC
Read the original article Hit count: 371

Filed under:
|
|

Regarding gridviews that are not bound to a Data Source Control:

In most GridView tutorials that I have seen, when just about any GridView event occurs, the end of the event handler will include BindDataGrid().

In some form, these BindDataGrid() functions 1) Grab data from the database 2) Assign any Filter or Sort expressions to the data, and 3) Bind the gridview to that data source (usually a DataView or DataTable.

Is there a better way to provide filterable & sortable data to a GridView without having to hit the database so often?

Thanks

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about gridview