Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#3.5 Web
I am creating a Grid View with some base data using edit template fields inside text boxes. for base data I have fixed number of columns. Next I am adding custom columns within text boxes and inserting before base data.
With the button click I am loosing the controls inside the grid view.
I have Save functionality so I can not set enable view state to false and reload everything
How can I save the all the controls and its values inside Grid View in View state and recreate every thing after post back?
Is there any other way to achieve my goal?
Thanks in advance.

Maninder Kumar
Posted 8-Nov-12 18:24pm
biswarup88 at 9-Nov-12 4:39am
do you want to recreate the same thing after the Post back?

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

  Print Answers RSS
0 OriginalGriff 300
1 ProgramFOX 165
2 Peter Leow 130
3 Fredrik Bornander 85
4 Sergey Alexandrovich Kryukov 85
0 OriginalGriff 300
1 ProgramFOX 165
2 Peter Leow 130
3 Sergey Alexandrovich Kryukov 85
4 Maciej Los 80

Advertise | Privacy | Mobile
Web01 | 2.8.150301.1 | Last Updated 8 Nov 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