protected void Page_Load(object sender, EventArgs e)
 {
     if (!ValidarConexionYUsuarioLogueado(sender))
     {
         return;
     }
     try
     {
         if (Session["UiQueryList"] != null)
         {
             UiQueryList.DataSource = Session["UiQueryList"];
             UiQueryList.DataBind();
         }
         if (Session["UiLookupTeam"] != null)
         {
             UiLookupTeam.DataSource = Session["UiLookupTeam"];
             UiLookupTeam.DataBind();
         }
         if (Session["UiGridLookupListaQuery"] != null)
         {
             UiGridLookupListaQuery.DataSource = Session["UiGridLookupListaQuery"];
             UiGridLookupListaQuery.DataBind();
         }
     }
     catch (Exception ex)
     {
         EstablecerError(ex.Message, sender);
     }
 }
 //protected void UiLookupTeam_Init(object sender, EventArgs e)
 //{
 //    var lista = (ASPxGridLookup)sender;
 //    var vista = lista.GridView;
 //    vista.CustomCallback += Vista_CustomCallback;
 //}
 public void GetTeam()
 {
     try
     {
         var pResult = "";
         var ds      = _objQueryList.GetTeam(Session["connectionString"].ToString(), ref pResult);
         if (pResult == "")
         {
             Session["UiLookupTeam"] = ds;
             UiLookupTeam.DataSource = ds;
             UiLookupTeam.DataBind();
         }
         else
         {
             ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('" + pResult + "');", true);
         }
     }
     catch (Exception ex)
     {
         ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
     }
 }