public void loaddata() { try { ds = new DataSet(); ds = dm.GetDieasesDetails(); GridDieases.DataSource = ds; GridDieases.DataBind(); } catch (SqlException ex) { ShowMessageBox("Remote Acess Not Available"); } }
protected void GridDieases_PageIndexChanging(object sender, GridViewPageEventArgs e) { GridDieases.PageIndex = e.NewPageIndex; loaddata(); GridDieases.DataBind(); }