title: Refresh GridView data
body: <p>In my first load of my <code>aspx</code> page, I have a <code>GridView</code> that are filled.</p>
  
  <p>In my <code>ASPX</code> page I handle the click event on my radio button </p>
  
  <pre><code>    $("#ctl00_contentConteudo_rbBuscas_1").click(function () {
          $.get("../Gerenciar/ListaUsuarioProvisorio.aspx?Documentacao=s&amp;r=" + Math.random(2), {}, function (data) {                
          });
      });
  </code></pre>
  
  <p>So, this force to pass in my page load again when my radio button is clicked.</p>
  
  <p><strong>ASPX</strong></p>
  
  <pre><code>&lt;div id="infoGrid" runat="server"&gt;
      &lt;cc1:GridView ID="grdImoveis" CssClass="StyleGrid" Width="100%" runat="server" ShowHeader="false"
          AutoGenerateColumns="False" DataSourceID="dsGrid" BorderWidth="0px" GridLines="None"
          AllowPaging="True" EnableModelValidation="True" &gt;
          &lt;AlternatingRowStyle BackColor="White" CssClass="EstiloDalinhaAlternativaGrid" HorizontalAlign="Center" /&gt;
          &lt;RowStyle CssClass="EstiloDalinhaGrid" HorizontalAlign="Center" /&gt;
          &lt;Columns&gt;
              &lt;asp:BoundField HeaderText="Nome" DataField="NomeCompleto" /&gt;
              &lt;asp:BoundField HeaderText="Cargo" DataField="DescricaoCargo1" /&gt;
              &lt;asp:BoundField HeaderText="Data Cadastro" DataField="DataHora" /&gt;
              &lt;asp:TemplateField ControlStyle-CssClass="acoes_lista_imovel" HeaderText="Curso"&gt;
                  &lt;ItemTemplate&gt;
                      &lt;div class="acoes_lista_imovel"&gt;
                          &lt;%# montaIcones(Eval("Usuario_Id").ToString())%&gt;
                      &lt;/div&gt;
                  &lt;/ItemTemplate&gt;
              &lt;/asp:TemplateField&gt;
          &lt;/Columns&gt;
      &lt;/cc1:GridView&gt;
      &lt;asp:SqlDataSource ID="dsGrid" runat="server"&gt;&lt;/asp:SqlDataSource&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>CODE BEHIND</strong></p>
  
  <p>In my code behind, my <code>PageLoad</code> just call my <code>CarregaLista</code> method, that fill my <code>GridView</code> </p>
  
  <pre><code>protected void CarregaLista()
          {            
                  string documentacao = Request.QueryString["Documentacao"].ToString();
  
                  if (documentacao.Equals("s"))
                  {
                      string select = string.Empty;
                      select += "SELECT top 10 San_Credenciada.Apelido, San_Usuario.NomeCompleto, San_Usuario.Usuario_Id, San_Usuario.DescricaoCargo1, "
                          + "CONVERT(varchar, San_Usuario.DataHora, 103) AS DataHora "
                          + "FROM San_Usuario "
                          + "JOIN San_Credenciada "
                          + "ON San_Usuario.Credenciada_Id = San_Credenciada.Credenciada_Id "
                          + "WHERE San_Usuario.Excluido = 0 "                        
                          + "GROUP BY San_Credenciada.Apelido, San_Usuario.NomeCompleto, San_Usuario.Usuario_Id, "
                          + "San_Usuario.DescricaoCargo1, San_Usuario.DataHora "
                          + "ORDER BY San_Usuario.DataHora ASC ";
  
                      dsGrid.ConnectionString = c.Con;
                      dsGrid.SelectCommand = select;
                      dsGrid.DataBind();
                      grdImoveis.DataBind();
                      dsGrid.Dispose();
                  }
              }
  }
  </code></pre>
  
  <p><strong>WITH UPDATE PANEL</strong></p>
  
  <pre><code>&lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" &gt;
      &lt;ContentTemplate&gt;
                  &lt;asp:RadioButton ID="RadioButton2" runat="server" Text="Curso Básico Netimóveis" /&gt;
                  &lt;asp:RadioButton ID="RadioButton1" runat="server" Text="Buscar Lista de Presença" /&gt;
                  &lt;asp:RadioButton ID="rdBuscas" runat="server" OnCheckedChanged="Click" Text="Curso Documentação Imobiliária" /&gt;
          &lt;cc1:GridView ID="grdImoveis" CssClass="StyleGrid" Width="100%" runat="server" ShowHeader="false"
              AutoGenerateColumns="False" DataSourceID="dsGrid" BorderWidth="0px" GridLines="None"
              AllowPaging="True" EnableModelValidation="True" &gt;
              &lt;AlternatingRowStyle BackColor="White" CssClass="EstiloDalinhaAlternativaGrid" HorizontalAlign="Center" /&gt;
              &lt;RowStyle CssClass="EstiloDalinhaGrid" HorizontalAlign="Center" /&gt;
              &lt;Columns&gt;
                  &lt;asp:BoundField HeaderText="Nome" DataField="NomeCompleto" /&gt;
                  &lt;asp:BoundField HeaderText="Cargo" DataField="DescricaoCargo1" /&gt;
                  &lt;asp:BoundField HeaderText="Data Cadastro" DataField="DataHora" /&gt;
                  &lt;asp:TemplateField ControlStyle-CssClass="acoes_lista_imovel" HeaderText="Curso"&gt;
                      &lt;ItemTemplate&gt;
                          &lt;div class="acoes_lista_imovel"&gt;
                              &lt;%# montaIcones(Eval("Usuario_Id").ToString())%&gt;
                          &lt;/div&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
              &lt;/Columns&gt;
          &lt;/cc1:GridView&gt;
  
          &lt;asp:SqlDataSource ID="dsGrid" runat="server"&gt;&lt;/asp:SqlDataSource&gt;
          &lt;/ContentTemplate&gt;
          &lt;Triggers&gt;
              &lt;asp:AsyncPostBackTrigger ControlID="rdBuscas" /&gt;
          &lt;/Triggers&gt;        
          &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>My problem is that my <code>GridView</code> don't refresh with this query.</p>
  
  <p>How can I solve this ?</p>