Exemple #1
0
 private void BtnBuscar_Click(object sender, EventArgs e)
 {
     Refresh();
     if (!AgregarNuevo.Text.Trim().Equals(""))
     {
         DataSet  DS = new DataSet();
         ItemMenu i  = new ItemMenu();
         DS = i.MostrarItemBuscado(AgregarNuevo.Text.Trim());
         try
         {
             dataGridView1.DataSource = DS.Tables[0];
         }
         finally
         {
         }
     }
 }