|
-
Apr 13th, 2008, 02:09 AM
#1
Thread Starter
Fanatic Member
problem in datatable.acceptchanges
i am using the following code:
if i use this code it deletes the row in dataset.tables(0) but after that i am using to update the dataset da.update(ds) but it is not gettting updated. value remais i dont know why? please help me to solve this please
-
Apr 13th, 2008, 04:03 AM
#2
Re: problem in datatable.acceptchanges
-
Apr 13th, 2008, 07:42 AM
#3
Thread Starter
Fanatic Member
Re: problem in datatable.acceptchanges
dear mendhak,
sorry fo rdidn't attach friend, i have resolved the problem. thanks for the attention.
-
Apr 13th, 2008, 07:49 AM
#4
Re: problem in datatable.acceptchanges
Another job well done by yours truly.
-
Apr 13th, 2008, 08:09 AM
#5
Re: problem in datatable.acceptchanges
Most likely it's because you're calling AcceptChanges() before updating your database. You need to know that AcceptChanges will reset the rowstates of any new or modified datarows to unchanged, and remove the rows with rowstate = deleted from the datatable. So once you call AcceptChanges on your datatable, you your dada adapter will see no new/modified/deleted rows in the datatable and nothing will be changed in your database.
-
Apr 13th, 2008, 11:19 AM
#6
Thread Starter
Fanatic Member
Re: problem in datatable.acceptchanges
thank you friends for attention to my thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|