Ejemplo n.º 1
0
 private void Buscar()
 {
     try
     {
         DgvListado.DataSource = NVenta.ConsultaFechas(Convert.ToDateTime(DtpFechaInicio.Value), Convert.ToDateTime(DtpFechaFin.Value));
         this.Formato();
         this.Limpiar();
         LblTotal.Text = "Total de registros: " + Convert.ToString(DgvListado.Rows.Count);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + ex.StackTrace);
     }
 }