private void button1_Click(object sender, EventArgs e) { AgregarColegio a = new AgregarColegio(colegios); a.Show(); dgvCol.DataSource = colegios; }
private void button1_Click(object sender, EventArgs e) { AgregarColegio a = new AgregarColegio(); if (DialogResult.OK == a.ShowDialog()) { //dgvStock.AutoGenerateColumns = false; dgvCol.DataSource = cbl.listarColegios(); } }