Click here to Skip to main content
12,819,619 members (35,969 online)
Rate this:
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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170308.1 | Last Updated 8 Nov 2012
Copyright © CodeProject, 1999-2017
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