In PageIndexChanged event write
VB.NET
Dim pageindex As Integer = DataGrid1.CurrentPageIndex + 1
LblPageInfo.Text = 'Page ' + pageindex.ToString() + ' of ' + DataGrid1.PageCount.ToString()
C#
int pageindex = DataGrid1.CurrentPageIndex + 1 ;
LblPageInfo.Text = 'Page ' + pageindex.ToString() + ' of ' + DataGrid1.PageCount.ToString() ;
Share with