GridView, FormView Edit/update feature not giving new vaules

Posted on 2006-04-27
Last Modified: 2007-12-19
I am using ASP.NET 2.0 for this.
I have a gridview that loads information from a datatable.
this datatable gets its data from reading an xml file(stream)
The gridview loads the information just fine. The edit button works, And when clicking edit, all values turn to textboxes for editing. Great.
When i click update, I get nothing back.
With a gridview, your supposed to get a dictionary with the old values, and the new values.
e.NewValues and e.OldValues.
But, the count is always 0, the values are always null.
Nothing is comming back.
So I've decided to use a formview.
I really need to use the formview anyways for custom display.
When using the formview, I have the same problem.
I even decided I would use the FindControl method to just get the value of the textbox
This is passing the oldvalues always, not the new.
This is a problem with databinding I am sure.
If anyone can help please let me know.
I can post code if requested.
Question by:bugnuker
    LVL 6

    Expert Comment

    in GridView, are your sure that your UPDATE is enables and correct?


    Author Comment

    yes. i am sure.
    i decided to screw it all and did some crappy code to make a formview work.
    i have it working now and dont feel like changing it to the right way if it will ever work.
    someone told me its becuase i am not using a real datasource (like sql) or somethign, i am using a dataset thats reading an xml file
    dunno why that would be the problem but whatever.
    thanks for the effort.

    Author Comment

    LVL 6

    Expert Comment

    in sql,
    See this very greate, fast and easy tutorial!

    Video - Developing ASP.NET 2.0 Applications using "Atlas"
    by Scott Guthrie, General Manager, .NET Development Platform
    Page: // the page
    To download:

    Author Comment

    On April 27th, 2006, I posted ADMINS: PAQ AWNSERED.
    Meaning, this queston was figured out by me.
    So you can close this one, and call is a PAQ.

    Accepted Solution

    PAQed with points refunded (300)

    Community Support Moderator

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    761 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

    9 Experts available now in Live!

    Get 1:1 Help Now