Click here to Skip to main content
11,789,706 members (63,211 online)
Rate this: bad
Please Sign up or sign in to vote.
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 2:59am
Edited 4-Jun-12 3:02am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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 OriginalGriff 999
1 Maciej Los 765
2 KrunalRohit 686
3 CPallini 606
4 Richard MacCutchan 430

Advertise | Privacy | Mobile
Web02 | 2.8.1509028.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