Exemplo n.º 1
0
        private void DBForm_Load(object sender, EventArgs e)
        {
            DataTable dt = db.getAll();

            dataGridView1.DataSource = dt;
            dataGridView1.Refresh();
        }
        private void bbdd_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'miDatabaseDataSet.información_compañias_aereas' table. You can move, or remove it, as needed.
            //    this.información_compañias_aereasTableAdapter.Fill(this.miDatabaseDataSet.información_compañias_aereas);
            DataTable dt = db.getAll();

            // Link the information in your table to your DataGridView control  
            dataGridView1.DataSource = dt;
            // Refresh the grid to show your data  
            dataGridView1.Refresh();
        } //Volcar base de datos en DataGrid