Click here to Skip to main content
11,496,146 members (475 online)
The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
See more: C# ASP.NET
I am creating the order form I have Gridview where I am fetching three columns from database table namely Id, Name And price , and added fourth column as new template field with TextBox for quantity, and for gridview allow paging is true with 5 rows per page.

After putting quantity in text-boxes When I click on Grid View page index the text box contents gets lost.

I want to put quantity on each Gridview page for all items and then want to add that all selecetd rows to new Gridview With mainly four columns and fifth column for Remove Row link please help me for this.
Posted 4-Jun-12 3:59am
Edited 4-Jun-12 4:02am

1 solution

EnableViewState = "true" : if you set this at your control you can keep your data alive on post back, try it on your control, if it doesn't work tell me to know!
amol kapsikar at 6-Jun-12 6:44am
I saw that Its set To true but it wont work...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 10,401
1 OriginalGriff 8,910
2 Sascha Lefèvre 3,899
3 Maciej Los 3,422
4 Richard Deeming 2,600

Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 4 Jun 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100