/// <summary>
        /// Function to fill Datagridview
        /// </summary>
        public void GridFill()
        {
            string    strColumn = string.Empty;
            DataTable dtbl      = new DataTable();

            try
            {
                if (rbtnInvoiceDate.Checked)
                {
                    strColumn = rbtnInvoiceDate.Text;
                }
                else
                {
                    strColumn = rbtnVoucherDate.Text;
                }
                dtbl = spPurchaseMaster.PurchaseInvoiceRegisterFill(strColumn, dtpFromDate.Value, dtpToDate.Value, Convert.ToDecimal(cmbCashOrParty.SelectedValue.ToString()), cmbPurchaseMode.Text, Convert.ToDecimal(cmbVoucherType.SelectedValue.ToString()), txtVoucherNo.Text);
                dgvPurchaseRegister.DataSource = dtbl;
            }
            catch (Exception ex)
            {
                formMDI.infoError.ErrorString = "PIREG4:" + ex.Message;
            }
        }
        /// <summary>
        /// Function to fill Datagridview
        /// </summary>
        public void GridFill()
        {
            string    strColumn = string.Empty;
            DataTable dtbl      = new DataTable();

            try
            {
                if (rbtnInvoiceDate.Checked)
                {
                    strColumn = rbtnInvoiceDate.Text;
                }
                else
                {
                    strColumn = rbtnVoucherDate.Text;
                }
                dtbl = spPurchaseMaster.PurchaseInvoiceRegisterFill(strColumn, dtpFromDate.Value, dtpToDate.Value, Convert.ToDecimal(cmbCashOrParty.SelectedValue.ToString()), cmbPurchaseMode.Text, Convert.ToDecimal(cmbVoucherType.SelectedValue.ToString()), txtVoucherNo.Text);
                dgvPurchaseRegister.DataSource = dtbl;
            }
            catch (Exception ex)
            {
                MessageBox.Show("PIREG4:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }