这样也行: void ChangePage(Object objSender, DataGridPageChangedEventArgs objArgs ) { BindDataGrid(); // update the current page number from the parameter values ProductManDataGrid.CurrentPageIndex = objArgs.NewPageIndex; // recreate the data set and bind it to the DataGrid control BindDataGrid(); }
void ChangePage(Object objSender, DataGridPageChangedEventArgs objArgs )
{
BindDataGrid();
// update the current page number from the parameter values
ProductManDataGrid.CurrentPageIndex = objArgs.NewPageIndex; // recreate the data set and bind it to the DataGrid control
BindDataGrid();
}
ProductManDataGrid.DataSource = my7thDeDS;//第二次没执行它