Пример #1
0
        public override bool getDatos(System.Windows.Forms.DataGridView dgv)
        {
            clear();
            bool exito = false;
            try
            {
                dsGimnasioTableAdapters.vwproductosTableAdapter ta = new dsGimnasioTableAdapters.vwproductosTableAdapter();
                dsGimnasio.vwproductosDataTable dt = ta.GetData();
                dgv.DataSource = dt;
                exito = true;
            }
            catch (Exception ex)
            {
                error.Add(ex.Message);
            }

            return exito;
        }
Пример #2
0
        // Metodo que realizara el refresh de los datos
        public override bool getDatos(System.Windows.Forms.DataGridView dgv)
        {
            clear();
            bool exito = false;

            try
            {
                dsGimnasioTableAdapters.vwproductosTableAdapter ta = new dsGimnasioTableAdapters.vwproductosTableAdapter();
                dsGimnasio.vwproductosDataTable dt = ta.GetData();
                dgv.DataSource = dt;
                exito          = true;
            }
            catch (Exception ex)
            {
                error.Add(ex.Message);
            }

            return(exito);
        }