Gridview rows unaccessible at server side
<p>I have used an <code>asp:GridView</code> with <code>ClientIDMode="Static"</code> and I<code>D="GridView2"</code> that shows some specific results let,s say accounts details on a button click.</p>

<p>First i was Databounding the grid and every thing was o.k other than postback delay and whole page redraw.</p>

<pre><code>(GridView2.DataSource = datatable.DefaultView;
 GridView2.DataBind();)
</code></pre>

<p>Now i am using ajax to update this grid(I create the html of grid in ajax function and overwrite it on Grid html like that</p>

<pre><code>$('#GridView2').html(html.join(''))
</code></pre>

<p>),it is drawing properly but now i am unable to access its rows on server side.</p>

<pre><code>for (int rows = 0; rows &lt; mayDataGrid.Rows.Count; rows++)//.Rows.Count is always 0 but in html it is there.
</code></pre>

<p>Please guide me what i am doing wrong.</p>
