title: Search/Filter option in Gridview using Asp.net C#
body: <p>I want to provide search option in Gridview so that user will find the exact match from the large data from the gridview. There are solution available when we set the Autogenerate property to "true" and sqlDataSource set in .aspx page. But I am generating columns dynamically in code. How to do. Pls help...!
  GridView :</p>
  
  <pre><code> &lt;asp:GridView ID="ItemGrid" runat="server" BackColor="White" Width="90%" 
       onrowcreated="GridView1_RowCreated" BorderStyle="Solid" onrowdatabound="GridView1_RowDataBound" AllowPaging="True" 
                   onpageindexchanging="ItemGrid_PageIndexChanging"&gt;
   &lt;HeaderStyle BackColor="#FF9900" BorderColor="White" Height="40px"  HorizontalAlign="Center"  Font-Bold="True" /&gt;
   &lt;RowStyle BorderColor="White"  Width="30px" HorizontalAlign="Center" BackColor="#CCCCCC" /&gt;
   &lt;AlternatingRowStyle HorizontalAlign="Center" /&gt;
    &lt;FooterStyle BackColor="Silver" /&gt;                    
               &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>Generating Columns in Code behind:</p>
  
  <pre><code> protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e){
  </code></pre>
  
  <p>//generating gridview header cells
  }</p>
  
  <p>Any Idea how to add search/Filter option in this case..?</p>