Source: Unknown Author: Unknown Recommended rating: Visits: 33
ASP.NET Custom Page of DataGrid Controls Zheng Zuo 2004-10-28 Although it is more convenient to use DataGrid, it is more convenient, but the efficiency is not high, you need to read all pages (the entire recordset), and The load is only one page, causing waste of resources, and the record will make the efficiency very low. The following is reduced by DataGrid's custom paging feature to reduce resource usage and improve efficiency. The key to the implementation is to set the AllowCustomPaging property bit True, and set the VirtualItemCount property to the total record number. Provide the page for the paging. The main code of the front desk is as follows: