// gvmain voucher code
        private void loadDataGVMainVoucher(int id)
        {
            var data = MBLL.LoadMainVocher(id);

            GVMainVoucher.DataSource = data;
            GVMainVoucher.DataBind();
        }
        private void clearCntrol_mainVoucher()
        {
            this.ViewState["CurrentData"] = null;
            DataTable dt = new DataTable();

            GVMainVoucher.DataSource = dt;
            GVMainVoucher.DataBind();

            txtMainVoucherNo.Text   = "";
            txtMainVoucherName.Text = "";
            loadDataGVMainVoucher(0);
            btnSave.Text = "Save";
        }