Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disconnected DataGrid + EditItemTemplate

Status
Not open for further replies.

Alcar

Programmer
Sep 10, 2001
595
US
I have this datagrid that holds orders information that the salesperson will input. I created a DataSet and I use it as the DataSource of my DataGrid. Everything seems to work fine until I go back to edit on of the many rows I have inserted. The behaviour I get is that it cancels that rows information.
Note: The DataSet always gets a healthy .AcceptChanges() before any Refresh of the datagrid and I make sure that all the information type gets added to the DataSet.
My wonder here is that I believe that the recordset, in Edit mode) accesses the "Original" value of the ds and not the newly added (even if I accept the changes).
Is that True?
I don;t want to update the info to the DB until they have edited and added and deleted all the rows they need to.
Any suggestions?

Thanks in advance!!
I'm Nice...
I checked Twice...
Daren J. Lahey
Just another computer guy...
FAQ183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.
Support your forums TODAY!
 
The behaviour I get is that it cancels that rows information

What exactly do you mean by this? What is the behavior?

Does it error out, or show empty fields, or... ??
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top