private void Exibir() { ClasseDLL dll = new ClasseDLL(); try { dataGridView.DataSource = dll.ExibirDadosDal(tabela); } catch { } }
private void btnExibir_Click(object sender, EventArgs e) { ClasseDLL dll = new ClasseDLL(); try { dataGridView.DataSource = dll.ExibirDadosDal(tabela); } catch { dataGridView.DataSource = dll.ExibirDadosDal(tabela); } }