protected void grdViewSearchResult_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
grdViewSearchResult.PageIndex = e.NewPageIndex;
DataSet ds = new DataSet();
ds = doctorSearch.getSearchResult();
grdViewSearchResult.DataSource = ds.Tables[0];
grdViewSearchResult.DataBind();
}
If this helped you then please Vote and accept the Answer :rose: