title: While filtering gridview from textbox show some message
body: <p>I have a <code>Gridview</code> and <code>textbox</code> which is outside the gridview. I enter some text and filter records from the grid.</p>
  
  <p>Now what I want is, I want to show <strong>No Records Found</strong> message if there are no matching records for the text inserted.</p>
  
  <p>Below is my code for filtering</p>
  
  <pre><code>&lt;input type="text" id="txtSearchSAP" onkeyup='FilterGrid(this);' class="field-style field-full align-none" maxlength="18" /&gt;
  </code></pre>
  
  <p><strong>JS Code for filter</strong></p>
  
  <pre><code>function FilterGrid(Obj) {
          var grid = document.getElementById('MainContent_grdSapDetails');
          var terms = Obj.value.toUpperCase();
          var cellNr = 0;
          var ele;
          for (var r = 1; r &lt; grid.rows.length; r++) {
              ele = grid.rows[r].cells[cellNr].innerHTML.replace(/&lt;[^&gt;]+&gt;/g, "");
              if (ele.toUpperCase().indexOf(terms) &gt;= 0)
                  grid.rows[r].style.display = '';
              else grid.rows[r].style.display = 'none';
          }
      }
  </code></pre>