public void LoadDataTable() { ReportsBLL ReportsBLL = new ReportsBLL(); TMPTABLE = ReportsBLL.DateReportsStartEntry(dateTimeFechaInicio.Value, dateTimeFechaFin.Value, (Convert.ToInt32(comboBoxTurno.SelectedValue.ToString()) == 0) ? "" : comboBoxTurno.Text.ToString(), (Convert.ToInt32(comboBoxDepartamento.SelectedValue.ToString()) == 0) ? "" : comboBoxDepartamento.Text.ToString()); dataGridViewReporteGeneral.DataSource = TMPTABLE; }