What is reason behind GridView in ASP.NET?
<p>I have confusion about GridView in ASP.NET. </p>

<p>How does the GridView exactly work?</p>

<p>I mean when we bind data to gridview with 100 records through GridView1.DataBind(); </p>

<p>I have set <strong>Pageindexchanging</strong> Event and I set the <strong>Pagesize = "40"</strong> and <strong>AllowPaging="True"</strong> Then....</p>

<p>Now the interesting part is begins What happens when i Click on next page index of GridView is it.  Once again go to the database and fetch the data.. or gridview creates its own dataset and fetch data from that dataset or anything different than this...</p>

<p>And one more thing is how the Sorting works in GridView?</p>
