private void txtIdLazer_Click(object sender, EventArgs e) { LazerDAL B = new LazerDAL(); txtIdLazer.DataSource = B.Listar(); txtIdLazer.ValueMember = "Id"; txtIdLazer.DisplayMember = "tipo_lazer"; }
private void AlimentarGrid() { try { LazerDAL c = new LazerDAL(); grid_condominio.DataSource = c.Listar();//Popular o grid } catch (Exception ex) { MessageBox.Show("Não foi possivel exibir os dados" + ex); } }