Is it possible to disable viewstate for gridview?

Hi, we need to disable viewstate for gridview, can we do that without losing main functionality(we need Paging only) , what we need to do that? any suggestions?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Yes, you can do that

To disable viewstate , use this

<asp:GridView ID="GV" runat="server" EnableViewState="false" />

just use the ordinary paging code and it will work fine !!!!

gridview.pageindex = e.newpageindex
//bind grid

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Abdu_AllahAuthor Commented:
Thank you the question now is  why gridview viewstate if the grid works fine without it?!!
I have three points

1. works improper when you engage edit mode
2. concurrency issue with ODBC
3. most important, performance will be degraded
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Abdu_AllahAuthor Commented:
>most important, performance will be degraded

Degraded! Our mean reason to remove the viewstate is to increase the performance since we place the gridview inside updatepanel.
well, In that case I suggest you read this

I hope this will shed some light on ur doubts ...
Abdu_AllahAuthor Commented:
Sorry I cannot find something that support your point of view!  
oops .... seems you are right about it .... I mis-interpreted the graph given in the site ... I will take back my point regarding performance ....
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.