private void CargarHistorialReprogramaciones(Decimal ID_DETALLE) { Programa _programa =new Programa(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); DataTable tablaHistorial = _programa.ObtenerHistorialReprogramaciones(ID_DETALLE); if (tablaHistorial.Rows.Count <= 0) { Panel_HistorialReprogramaciones.Visible = false; GridView_HistorialReprogramaciones.DataSource = null; GridView_HistorialReprogramaciones.DataBind(); } else { Panel_HistorialReprogramaciones.Visible = true; Cargar_GridView_HistorialReprogramaciones_DesdeTabla(tablaHistorial); } }