private void BindGrid(bool configurarExportarExcel)
        {
            IGuiasSolicitudConfirmacionTurnoDominio _guiasDominio = IoC.GetObjectDominio <IGuiasSolicitudConfirmacionTurnoDominio>();

            if (configurarExportarExcel == true)
            {
                // Tengo qu econfigurar para exportar a excel
                dtgDatosHR.AllowPaging = false;

                dtgDatosHR.BorderWidth = Unit.Pixel(0);
                dtgDatosHR.BorderColor = System.Drawing.Color.White;
                dtgDatosHR.BorderStyle = BorderStyle.None;
            }

            if (Session["DsReporteDisponibilidad"] == null)
            {
                string nrohojaruta = txtNroHojaRuta.Text;

                try
                {
                    nroCompleto = nrohojaruta.Split('-');
                }
                catch
                {
                    ((ErrorWeb)this.phErrores.Controls[0]).setMensaje("Nro de hoja de ruta repartidor mal ingresado");
                    return;
                }
                _guiasReporte         = _guiasDominio.GetGuiasByHojaRutaRepartidor(Convert.ToInt32(nroCompleto[1]), Convert.ToInt32(nroCompleto[0]));
                dtgDatosHR.DataSource = _guiasReporte;
                dtgDatosHR.DataBind();
                Session["DsReporteDisponibilidad"] = _guiasReporte;

                if (_guiasReporte.Count > 0)
                { //quiere decir que tiene datos se habilita el boton de exportar
                    btnExporta.Enabled = true;
                }
            }
        }