title: clearing sqldatasource filterexpressions
body: <p>I have a gridview that is being populated with data from a sqldatasource.  I'm using FilterExpressions with a text box to provide a search like function to filter the gridview results.  My problem is the only way to "clear" the filtered results is to search again with the text box empty.  Not very user-friendly.  What I'm trying to do is have a clear button that clears the filters.  Here is what I have, but it is not working.  When I click on the button it does nothing.</p>
  
  <pre><code>&lt;asp:Button ID="btnClear" runat="server" onclick="btnClear_Click" Text="Clear" /&gt;
  
  
  protected void btnClear_Click(object sender, EventArgs e)
      {
          SqlDataSource1.FilterParameters.Clear();
          SqlDataSource1.FilterExpression = string.empty;
          gvReporting.DataBind();
      }
  </code></pre>