Duration: 23 minutes
Summary: In this video, we continue our discussion of GridView. We will talk about paging within the grid, and how to enable Ajax. We start with a simple grid that retrieves data from the Product table in the Production schema. Then since we have to scroll to see all the data returned, we enable paging on the grid. We do so by setting AllowPaging property to true. Then we can choose how many records to view per page by setting the PageSize property. Note that although all the records are loaded into memory, we can view them one page at a time. Then we enable Ajax by putting the grid in an UpdatePanel. That way, only that portion of the page that contains the grid will be updated (instead of posting the whole page to the server). Finally , we show that we have control over the paging footer by changing the properties within the PagerSettings and the PagerStyle of the grid properties.
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.
Technology Used: ASP.NET and Visual Studio 2010
Keyword: ASP.NET 4, Visual Studio 2010, GridView, AllowPaging, Ajax, PageSize, SqlDataSource, ScriptManager, UpdatePanel, ContentTemplate, PagerSettings, PagerStyle.