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