private void Buscar()
 {
     try
     {
         DgvListado.DataSource = NCategoria.Buscar(txtBuscar.text);
         this.Formato();
         labelTotal.Text = "TOTAL DE REGISTROS : \t" + Convert.ToString(DgvListado.Rows.Count);
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message + e.StackTrace);
     }
 }
예제 #2
0
 private void Buscar()
 {
     try
     {
         DgvListado.DataSource = NCategoria.Buscar(TxtBuscar.Text);
         this.Formato();
         LblTotal.Text = "Total de registros: " + Convert.ToString(DgvListado.Rows.Count);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + ex.StackTrace);
     }
 }
예제 #3
0
 //Metodo para filtrar entre las categorias existentes
 private void Buscar()
 {
     try
     {
         //Llenamos el DataGrid con el metodo Listar de la Clase Ncategoria
         DgvListado.DataSource = NCategoria.Buscar(TxtBuscar.Text);
         //Aplicamos el formato al datagrid con el metodo "Formato"
         this.Formato();
         //Le asignamos texto al Label total Registros
         LblTotal.Text = "Total Registros: " + Convert.ToString(DgvListado.Rows.Count);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + ex.StackTrace);
     }
 }