Hello,
I think I found a bug in the .NET framework. I used the merge() function of the DataSet class and it works incorrectly. So here is my code:
In this case through calling update and acceptchanges() the rowstate of each row in dsChanges switched to Unmodified. if i merge dschanges back into m_ds the rowstate will not be updated in m_ds. Therefore I get an error everytime this code will be executed a second time.Code:DataSet dsChanges = m_ds.GetChanges(); .. dsChanges.Update(); .. dsChanges.AcceptChanges(); m_ds.Merge(dsChanges);
what is the best solution? Should i remove the rows from m_ds at first and insert the rows again? i am a little bit confused.
Do I anything wrong?
Any hints?




Reply With Quote