protected void taskGridView_PageIndexChanging(object sender, GridViewPageEventArgs e) { eventBO filltable = new eventBO(); String user_Id = Request.Cookies["CurrentLoggedInUser"].Value; taskGridView.DataSource = filltable.loadEvent(user_Id); taskGridView.PageIndex = e.NewPageIndex; taskGridView.DataBind(); }
//correct one // eventBO getEventDetails = new eventBO(); public void loadData() { eventBO filltable = new eventBO(); String user_Id = Request.Cookies["CurrentLoggedInUser"].Value; taskGridView.DataSource = filltable.loadEvent(user_Id); taskGridView.DataBind(); // taskGridView.UseAccessibleHeader = true; // taskGridView.HeaderRow.TableSection = TableRowSection.TableHeader; }