1. First, you must give the DataGrid control to the following page of the necessary properties: 1AllowPaging Set to True 2AllowCustomPaging Set to True 3Runat Set to Server2, in change_page (process the implementation method in the statement block when you click on the page action) 1, in the first When the page is loaded, set the VirtualItemCount value of Dategrid (the total number of records). Example: MyDataGrid.VirtualItemCount = "Record Total Value in the Database" 2 Sets the data example bonded to the current page: myCommand.Fill (MyDataSet, page number * per page record number, number per page, the table to be filled); 3, the value set CurrentPageIndex NewPageIndex (so that the front page displayed when this page is not displayed as a link.) For example: private void Change_Page (object sender, DataGridPageChangedEventArgs e) {DataGrid.CurrentPageIndex = e.NewPageIndex;}