Exemplo n.º 1
0
        private void BindGrid()
        {
            int EmpID = (int)HttpContext.Current.Session["EmpID"];

            PlaceOrderGridView.DataSource = POBizLogic.DataBind(EmpID);
            PlaceOrderGridView.DataBind();
        }
Exemplo n.º 2
0
        protected void PlaceOrderGridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            int EmpID = (int)HttpContext.Current.Session["EmpID"];

            PlaceOrderGridView.DataSource = POBizLogic.DataBind(EmpID);
            PlaceOrderGridView.PageIndex  = e.NewPageIndex;
            PlaceOrderGridView.DataBind();
            BindGrid();
        }