Gridview Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a question regarding the gridview. Does the gridview persist the
entire datasource in the viewstate?

For example my datasource is returning 100 records, but my gridview only
displays 10. Are the other 90 records stored in the viewstate?

Thanks.
 
No, it doesn't.

I have a question regarding the gridview. Does the gridview persist the
entire datasource in the viewstate?

For example my datasource is returning 100 records, but my gridview only
displays 10. Are the other 90 records stored in the viewstate?

Thanks.
 
Hi Siva
Nice question...view state is a very important thing...Especially in
case of grid views, View State's size increases and it affects the
performance of web application..If Datasource is returning 100 records
and displaying only 10 then remaining 90 will be in viewstate only..
See the below link:
http://msdn.microsoft.com/msdnmag/issues/06/07/WebAppFollies/default.aspx
in this link see-----View State: The Silent Perf Killer
--Raghav
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top