Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.5 Web
Hi
 
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
Comments
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 DamithSL 421
1 OriginalGriff 220
2 Sergey Alexandrovich Kryukov 207
3 Peter Leow 185
4 Afzaal Ahmad Zeeshan 170
0 OriginalGriff 7,380
1 DamithSL 5,359
2 Sergey Alexandrovich Kryukov 4,944
3 Maciej Los 4,906
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 8 Nov 2012
Copyright © CodeProject, 1999-2014
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