private void Btn_reporteMensual_Click(object sender, RoutedEventArgs e) { date_desde.IsEnabled = false; date_hasta.IsEnabled = false; lb1.Content = ""; lb2.Content = ""; btn_filtrarRango.Visibility = Visibility.Hidden; dt.Clear(); dt = pb.Reporte_PedidoMensual(); dtg_reportepedido.ItemsSource = dt.DefaultView; txt_total.Text = Total(dt).ToString(); }