help with DataSet.Merge  
Author Message
shimshon





PostPosted: Visual C# General, help with DataSet.Merge Top

hi all.

in my application i have a timer, on the timer_tick event i go to the DB and get a refreshed dataset.

then i do MyDataset.Merger(NewDataSet).

but - how can i know if there are changes, and if i had changes i want to let the user know it.

thanks.




Visual C#17  
 
 
Geert Verhoeven





PostPosted: Visual C# General, help with DataSet.Merge Top

Hi,

You should use the HasChanges and AcceptChanges method of the dataset. See the example on the MSDN site: http://msdn2.microsoft.com/en-us/library/4swwh51k.aspx.

Greetz,

Geert

Geert Verhoeven
Ausy Belgium

My Personal Blog