Example #1
0
        /// <summary>
        /// Function to Fill the grid
        /// </summary>
        public void GridFill()
        {
            try
            {
                FinancialYearSP spFinancialYear = new FinancialYearSP();
                DataTable       dtbl            = new DataTable();

                dtbl = spFinancialYear.FinancialYearViewAll();
                dgvChangeFinancialYear.DataSource = dtbl;
            }
            catch (Exception ex)
            {
                MessageBox.Show("CHGFINYR:1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
        /// <summary>
        /// Function to Fill the grid
        /// </summary>
        public void GridFill()
        {
            try
            {
                FinancialYearSP spFinancialYear = new FinancialYearSP();
                DataTable dtbl = new DataTable();

                dtbl = spFinancialYear.FinancialYearViewAll();
                dgvChangeFinancialYear.DataSource = dtbl;
            }
            catch (Exception ex)
            {
                MessageBox.Show("CHGFINYR:1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
        /// <summary>
        /// Function to Fill the grid
        /// </summary>
        public void GridFill()
        {
            try
            {
                FinancialYearSP spFinancialYear = new FinancialYearSP();
                DataTable       dtbl            = new DataTable();

                dtbl = spFinancialYear.FinancialYearViewAll();
                dgvChangeFinancialYear.DataSource = dtbl;
            }
            catch (Exception ex)
            {
                formMDI.infoError.ErrorString = "CHGFINYR:1" + ex.Message;
            }
        }