/*Change: added PendingVouchersGridView_SelectedIndexChanged */
        protected void PendingVouchersGridView_SelectedIndexChanged(object sender, EventArgs e)
        {
            int voucherId = Convert.ToInt32(PendingVouchersGridView.DataKeys[PendingVouchersGridView.SelectedRow.RowIndex].Values[0]);

            ViewState["vid"] = (int)voucherId;
            PendingVoucherItemsGridView.DataSource = VoucherBizLogic.ListVoucherDetails((int)HttpContext.Current.Session["EmpID"], voucherId);
            PendingVoucherItemsGridView.DataBind();
            PendingVoucherItemsGridView.Visible = true;
        }
        protected void PendingVoucherItemsGridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            int voucherId = (int)ViewState["vid"];

            PendingVoucherItemsGridView.DataSource = VoucherBizLogic.ListVoucherDetails((int)HttpContext.Current.Session["EmpID"], voucherId);
            PendingVoucherItemsGridView.PageIndex  = e.NewPageIndex;
            PendingVoucherItemsGridView.Visible    = true;
            PendingVoucherItemsGridView.DataBind();
        }