private void Buscar() { try { DgvListado.DataSource = NVenta.ConsultaFecha(Convert.ToDateTime(datapickerInicio.Value), Convert.ToDateTime(datapickerFinal.Value)); this.Limpiar(); } catch (Exception e) { MessageBox.Show(e.Message + e.StackTrace); } }