You should let us have a look at how do you write your asp.net code. I want to see how your textbox (that wouldn't update it's value on post back) created.
Main Topics
Browse All TopicsI am working on an asp.net application that will allow my company to pick an item from a datagrid, and then print the list of items selected out with there corresponding locations within our warehouse. I took the approach of programming this like a shopping cart in that a clerk can search for an item and it's locations are displayed in one gridview, if they select a particular row, it's contents are added to another gridview. The problem I am having is that I can't seem to update this second gridview, which is the Editable GridView on Matt Dotson's MSDN blog. The update method I call works correctly but it doesn't recognize that I've changed the data in the Textbox.
Example is if the default quantity was 0 and I change it to 12 in the textbox, once I push the update button it updates with the quantity as 0 and not 12. I have verified this much by stepping through code within the debugger.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thanks for the replies. It's not a textbox but a textbox within a gridview that's giving me these problems. The update command is the standard update command used by a table adapter created in a dataset. You were dead on Anu. I called the AcceptChanges in a different method to get the modified flag on my rows and it works perfectly.
Business Accounts
Answer for Membership
by: anuragalPosted on 2008-06-28 at 21:02:15ID: 21892906
You can not call AcceptChanges() before calling Update() as after calling AcceptChanges the update will not have any changes to update back to database.
What acceptchanges do is it make all the changes baseline and puts the delta (Changes) to nothing. So once you update the delta back to database then only you should call acceptchanges.
Also where you have specified the Update command for the DataAdaptor??
Anurag