protected void BtnDelete_Click(object sender, EventArgs e)
    {
        //LoadData();
        GridViewRow row     = ((System.Web.UI.WebControls.Button)sender).Parent.Parent as GridViewRow;
        string      itemDes = gvItemList.DataKeys[row.RowIndex].Value.ToString();


        Requisition_Item rItem = RequisitionControl.findByReqIDItemCode(id, itemDes);
        string           iCode = rItem.ItemCode;
        int rId = rItem.RequisitionID;

        RequisitionControl.removeRequisitionItem(rId, iCode);

        showAllItems();
    }
    protected void ReqRow_Updating(object sender, GridViewUpdateEventArgs e)
    {
        vsQty.Enabled = true;
        System.Web.UI.WebControls.TextBox qtyText = (System.Web.UI.WebControls.TextBox)gvItemList.Rows[e.RowIndex].FindControl("txtQuantity");
        int newQty = Convert.ToInt32(qtyText.Text);

        System.Web.UI.WebControls.Label codeLabel = (System.Web.UI.WebControls.Label)gvItemList.Rows[e.RowIndex].FindControl("lblCode");
        string itemDesc = codeLabel.Text;

        Requisition_Item item  = RequisitionControl.findByReqIDItemCode(id, itemDesc);
        string           iCode = item.ItemCode;
        int rId = item.RequisitionID;

        RequisitionControl.updateRequisitionItem(rId, iCode, newQty);

        gvItemList.EditIndex = -1;
        showAllItems();
    }