private void textBox8_TextChanged(object sender, EventArgs e) { try { string campo = "Nombre"; DAO.CatalogosDAO catalogosdao = new EquimarFac.DAO.CatalogosDAO(); DataView dv = new DataView(catalogosdao.devuelveservicios()); dv.RowFilter = campo + " like '%" + textBox8.Text + "%'"; dataGridView1.DataSource = dv; } catch { } }
public void actualizagrid() { DAO.CatalogosDAO catalogosdao = new EquimarFac.DAO.CatalogosDAO(); dataGridView1.DataSource = catalogosdao.devuelveservicios(); }
private void ServiciosBusqueda_Load(object sender, EventArgs e) { DAO.CatalogosDAO catalogos = new EquimarFac.DAO.CatalogosDAO(); dataGridView1.DataSource = catalogos.devuelveservicios(); }