title: I changed ObjectDataSource's SelectMethod but it still returns old values on GridView
body: <p>I have this two diferent classes to use in my ObjectDataSource:</p>
  
  <p>"getColection" and "getLastColectionByUser" </p>
  
  <p>This is my ObjectDataSource at aspx.</p>
  
  <p>`</p>
  
  <pre><code>  &lt;asp:ObjectDataSource ID="ObjectDataSource1" runat="server"          SelectMethod="getColection"TypeName="HepatiteNegocio.ViewProtocoloCol" SelectCountMethod="getColectionCount"
      EnablePaging="True"&gt;
      &lt;SelectParameters&gt;
          &lt;asp:Parameter Name="pWhere" Type="String" /&gt;
          &lt;asp:Parameter Name="pOrderBY" Type="String" /&gt;
          &lt;asp:Parameter Name="startRowIndex" Type="Int32" /&gt;
          &lt;asp:Parameter Name="maximumRows" Type="Int32" /&gt;
      &lt;/SelectParameters&gt;
  &lt;/asp:ObjectDataSource&gt;`
  </code></pre>
  
  <p>If radio button selected value is "all" select method is "getColection" else is "getLastColectionByUser", all right?</p>
  
  <pre><code>          `if(radioButton.SelectedValue.Equals("all"))
          {
              ObjectDataSource1.SelectMethod = "getColection";
              ObjectDataSource1.SelectCountMethod = "getColectionCount";
  
              try
              {
                  validation();
  
                  ObjectDataSource1.SelectParameters[0].DefaultValue = getWhere();
                  ObjectDataSource1.SelectParameters[1].DefaultValue = "protocolNumber";
  
              }
              catch
              {
                  set an error message
              }
          }
          else  
          {
              ObjectDataSource1.SelectMethod = "getLastColectionByUser";
              ObjectDataSource1.SelectCountMethod = "getLastCountColectionByUser";
              try
              {
                  validation();
                  ObjectDataSource1.SelectParameters[0].DefaultValue = getWhere();
                  ObjectDataSource1.SelectParameters[1].DefaultValue = "protocolNumber";
              }
              catch
              {
                  set an erron message
              }
          } 
          ObjectDataSource1.DataBind();
          GridView1.DataBind();`
  </code></pre>
  
  <p>When I debug it works fine. The SelectMethod and SelectCountMethod are changing BUT the gridView is still showing old values. The Classes are ok. What is going wrong?</p>