private void BindGrid()
        {
            int EmpID = (int)HttpContext.Current.Session["EmpID"];

            PlaceOrderGridView.DataSource = POBizLogic.DataBind(EmpID);
            PlaceOrderGridView.DataBind();
        }
        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();
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (HttpContext.Current.Session["EmpID"] == null)
     {
         Response.Redirect("/Account/Login.aspx");
     }
     else
     {
         if (!IsPostBack)
         {
             int EmpID = (int)HttpContext.Current.Session["EmpID"];
             PlaceOrderGridView.DataSource = POBizLogic.InitialPO(EmpID);
             PlaceOrderGridView.DataBind();
             if (PlaceOrderGridView.Rows.Count == 0)
             {
                 ConfirmButton.Visible = false;
             }
         }
     }
 }