private void ShowCat() { try { GrdCat.DataSource = beta.ProductCategories.ToList(); GrdCat.DataBind(); } catch (Exception e) { throw e; } }
//Paging protected void GrdCat_PageIndexChanging(object sender, GridViewPageEventArgs e) { ShowCat(); GrdCat.PageIndex = e.NewPageIndex; GrdCat.DataBind(); }