Sull'evento del bottone del filtro aggiungi
Esempio 1 - Per tornare alla prima pagina:
DataGrid1.CurrentPageIndex = 0
Esempio 2- controllo:
int lastpage;
lastpage = DataGrid1.CurrentPageIndex;
DataGrid1.CurrentPageIndex = 0;
BindGrid();
if (this.DataGrid1.PageCount > lastpage ){
DataGrid1.CurrentPageIndex = this.DataGrid1.PageCount //o quella che vuoi;
} else {
DataGrid1.CurrentPageIndex = lastpage;
}
Spero di essere stato chiaro
Fammi sapere
Ciao
K