示例#1
0
        private void textBox8_TextChanged(object sender, EventArgs e)
        {
            try
            {
                string           campo        = "Descripcion";
                DAO.CatalogosDAO catalogosdao = new EquimarFac.DAO.CatalogosDAO();

                DataView dv = new DataView(catalogosdao.devuelveProductos());
                dv.RowFilter = campo + " like '%" + textBox8.Text + "%'";

                dataGridView1.DataSource = dv;
            }
            catch
            {
            }
        }
示例#2
0
 public void actualizagrid()
 {
     DAO.CatalogosDAO catalogosdao = new EquimarFac.DAO.CatalogosDAO();
     dataGridView1.DataSource = catalogosdao.devuelveProductos();
 }