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

Posted on 2011-04-25
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

    Accepted Solution

    I found a way to retain the values by getting the post data and the rebinding the gridview.

    Author Closing Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
    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…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now