bool ValidaDatosMod()
        {
            LblErrGrabar.Text = "";
            bool HayError = false;

            if ((CboTipoContratacion.SelectedValue == "") || (Convert.ToInt32(CboTipoContratacion.SelectedValue) == 0))
            {
                if (LblErrGrabar.Text == "")
                {
                    LblErrGrabar.Text = LblErrGrabar.Text + "Debe Seleccionar un tipo de contratación";
                }
                else
                {
                    LblErrGrabar.Text = LblErrGrabar.Text + ", Debe Seleccionar un tipo de contratación";
                }
                HayError = true;
            }
            if ((TxtUsuario.Text != TxtUsuarioAntes.Text) && (ClUsuario.Existe_Usuario(TxtUsuario.Text) == true))
            {
                if (LblErrGrabar.Text == "")
                {
                    LblErrGrabar.Text = LblErrGrabar.Text + "Usuario ya existe";
                }
                else
                {
                    LblErrGrabar.Text = LblErrGrabar.Text + ", Usuario ya existe";
                }
                HayError = true;
            }
            if (ClUtilitarios.EsInstitucional(TxtCorreo.Text) == false)
            {
                if (LblErrGrabar.Text == "")
                {
                    LblErrGrabar.Text = LblErrGrabar.Text + "Solo puede agregar correos del dominio inab.gob.gt";
                }
                else
                {
                    LblErrGrabar.Text = LblErrGrabar.Text + ", Solo puede agregar correos del dominio inab.gob.gt";
                }
                HayError = true;
            }
            if ((TxtCorreo.Text != TxtCorreoAntes.Text) && (ClUsuario.Existe_Correo(TxtCorreo.Text) == true))
            {
                if (LblErrGrabar.Text == "")
                {
                    LblErrGrabar.Text = LblErrGrabar.Text + "Correo ya existe";
                }
                else
                {
                    LblErrGrabar.Text = LblErrGrabar.Text + ", Correo ya existe";
                }
                HayError = true;
            }
            if (GrdRel_Region.Items.Count == 0)
            {
                if (LblErrGrabar.Text == "")
                {
                    LblErrGrabar.Text = LblErrGrabar.Text + "Debe Agregar al menos una subregión";
                }
                else
                {
                    LblErrGrabar.Text = LblErrGrabar.Text + ", Debe Agregar al menos una subregión";
                }
                HayError = true;
            }
            if ((CboPerfil.SelectedValue == "") || (Convert.ToInt32(CboPerfil.SelectedValue) == 0))
            {
                if (LblErrGrabar.Text == "")
                {
                    LblErrGrabar.Text = LblErrGrabar.Text + "Debe seleccionar el perfil";
                }
                else
                {
                    LblErrGrabar.Text = LblErrGrabar.Text + ", Debe seleccionar el perfil";
                }
                HayError = true;
            }
            if (SeleccionoModulo() == false)
            {
                if (LblErrGrabar.Text == "")
                {
                    LblErrGrabar.Text = LblErrGrabar.Text + "Debe seleccionar al menos un módulo";
                }
                else
                {
                    LblErrGrabar.Text = LblErrGrabar.Text + ", Debe seleccionar al menos un módulo";
                }
                HayError = true;
            }
            if (CboPerfil.SelectedValue != TxtPerfilId.Text)
            {
                if (Convert.ToInt32(CboPerfil.SelectedValue) == 10)
                {
                    int SubRegion = Convert.ToInt32(GrdRel_Region.Items[0].GetDataKeyValue("SubRegionId"));
                    if (ClUsuario.Existe_Usuario_Region_SubRegion(SubRegion, 10) != "")
                    {
                        if (LblErrGrabar.Text == "")
                        {
                            LblErrGrabar.Text = LblErrGrabar.Text + "Ya existe un usuario con este perfil para esta región";
                        }
                        else
                        {
                            LblErrGrabar.Text = LblErrGrabar.Text + ", Ya existe un usuario con este perfil para esta región";
                        }
                        HayError = true;
                    }
                }
                if (Convert.ToInt32(CboPerfil.SelectedValue) == 11)
                {
                    int SubRegion = Convert.ToInt32(GrdRel_Region.Items[0].GetDataKeyValue("SubRegionId"));
                    if (ClUsuario.Existe_Usuario_Region_SubRegion(SubRegion, 11) != "")
                    {
                        if (LblErrGrabar.Text == "")
                        {
                            LblErrGrabar.Text = LblErrGrabar.Text + "Ya existe un usuario con este perfil para esta subregión";
                        }
                        else
                        {
                            LblErrGrabar.Text = LblErrGrabar.Text + ", Ya existe un usuario con este perfil para esta subregión";
                        }
                        HayError = true;
                    }
                }
            }
            if (HayError == true)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }