Hi all,
I wrote this function for DataGrid Paging
protected void DataGrid1_PageIndexChanged(object source, DataGridPageChangedEventArgs e)
{

if (e.NewPageIndex < 0)
DataGrid1.CurrentPageIndex = 0;
else if (e.NewPageIndex < DataGrid1.PageCount)
DataGrid1.CurrentPageIndex = e.NewPageIndex;
int currentpage = DataGrid1.CurrentPageIndex + 1;
Label1.Text = "Page" + currentpage.ToString() + " of " + DataGrid1.PageCount.ToString() + ".";
DataGrid1.DataBind();
,But it dose not work,it is running the code but nothing show on page, how can I fix this error.
Thanks in advance.