Ejemplo n.º 1
0
 private void Buscar()
 {
     try
     {
         DgvListado.DataSource = NVenta.Buscar(TxtBuscar.Text);
         this.Formato();
         LblTotal.Text = "Total de registros: " + Convert.ToString(DgvListado.Rows.Count);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + ex.StackTrace);
     }
 }
Ejemplo n.º 2
0
        private void Buscar()
        {
            try
            {
                DgvListado.DataSource = NVenta.Buscar(txtBuscar.text);

                if (txtBuscar.text.Equals(Convert.ToString(DgvListado.DataSource)))
                {
                    MessageBox.Show("no se encuentra", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message + e.StackTrace);
            }
        }
Ejemplo n.º 3
0
 //Método Buscar
 private void Buscar()
 {
     this.dgvListado.DataSource = NVenta.Buscar(this.dtpBusqueda.Text);
     this.OcultarColumnas();
 }
Ejemplo n.º 4
0
 private void Buscar()
 {
     this.dataListado.DataSource = NVenta.Buscar(this.txtBuscar.Text.Trim());
     this.ocultarColumnas();
     lblTotal.Text = "Total de Registros: " + Convert.ToString(dataListado.Rows.Count);
 }