How to scroll to a particular record in gridview which is in div
<p>I have a TextBox and a Button, and
I have a quite long GridView (I don't want to page it), so I put it in a Div with vertical scroll bar enabled.</p>

<p>I just want to enter search string in text box and if I click on button it should find the row where string matched and set its back color, and should scroll to that row.</p>

<p>This should be done in Javascript.
I'm able to do every thing, but no luck in scrolling to the found row.</p>

<p>The javascript function is like below </p>

<pre><code>function NextClinic() {

            var gvClinics = document.getElementById("&lt;%= gvClinics.ClientID %&gt;");
            var FindText = document.getElementById("&lt;%= txtClinicKeywords.ClientID %&gt;").value;
            var oRows = gvClinics.rows;
            var rawDataRows = new Array();
            var cell;
            var hdnCounterNext = document.getElementById("&lt;%= hdnCounterNext.ClientID %&gt;").value;
            for (var i = hdnCounterNext; i &lt; oRows.length; i++) {
                var cell = gvClinics.rows[i].cells[3];
                if (cell.innerHTML.indexOf(FindText) !== -1) {
                    alert("found at " + i);
                    document.getElementById("&lt;%= hdnCounterNext.ClientID %&gt;").value = i+1
                    return false;
                }
            }
        }
</code></pre>

<p>A best suggestion is highly appreciated..</p>

<p>Thanks
Sri.</p>
