title: How can i use this code for filtering all column of grid?
body: <p>I  use this code in my grid view, but it just filter one 
   column of  my grid view.
  I want  to add other column to  this code, I'm using it for loop but the code doesn't work right.</p>
  
  <p>How can i change this code to achieve filtering in other column not one column ?</p>
  
  <p>There is one column filtering code:</p>
  
  <pre><code> $(document).ready(function () {
              //
              // Client Side Search (Autocomplete)
              // Get the search Key from the TextBox
              // Iterate through the 1st Column.
              // td:nth-child(1) - Filters only the 1st Column
              // If there is a match show the row [$(this).parent() gives the Row]
              // Else hide the row [$(this).parent() gives the Row]
            { $('#filter').keyup(function (event) {
                  var searchKey = $(this).val();
  
                  $("#gvwHuman_ctl00 tr td:nth-child(4)").each(function () {
                      var cellText = $(this).text();
                      if (cellText.indexOf(searchKey) &gt;= 0) {
                          $(this).parent().show();
                      }
                      else {
                          $(this).parent().hide();}
  
                  });
  
              });
  
          });
  </code></pre>
  
  <p>And there is the code for all columns:</p>
  
  <pre><code> $(document).ready(function () {
              //
              // Client Side Search (Autocomplete)
              // Get the search Key from the TextBox
              // Iterate through the 1st Column.
              // td:nth-child(1) - Filters only the 1st Column
              // If there is a match show the row [$(this).parent() gives the Row]
              // Else hide the row [$(this).parent() gives the Row]
            { $('#filter').keyup(function (event) {
                  var searchKey = $(this).val();
                for(i=0;i&lt;5;++i)
                 {    $("#gvwHuman_ctl00 tr td:nth-child(i)").each(function () {
                      var cellText = $(this).text();
                      if (cellText.indexOf(searchKey) &gt;= 0) {
                          $(this).parent().show();
                      }
                      else {
                          $(this).parent().hide();}
  
                  });
  
              });   }
  
          });
  </code></pre>