Learn how to a build a cloud-first strategyRegister Now


how to retain the value of a textbox in a dynamically created gridview

Posted on 2011-04-25
Medium Priority
Last Modified: 2012-06-21
I have a gridview that I bind when a treeview item is clicked on. When this happens, the gridview shows up in a modal window. My textboxes and blank values are coming into the gridview fine. When I add values into the textboxes and click save, I only retain the value of the textboxes that were originally put into the textboxes upon the datbind. How am I to get the values from the texboxes that I entered in AFTER the databind? My code is attached. gridview-and-class-code.txt
Question by:bschave2
  • 2

Accepted Solution

bschave2 earned 0 total points
ID: 35795580
I found a way to retain the values by getting the post data and the rebinding the gridview.

Author Closing Comment

ID: 35795586
because no one commented and I figured it out on my own.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question