Home All Groups Group Topic Archive Search About

Does DataSet.Copy() remove event handlers?

Author
5 Mar 2007 12:14 PM
Bjørn Terje Svennes
I'm wireing some event handlers to tables in a DataSet. This is performed in
EndInit(). Everything works well untill I use the Copy() method of the
DataSet class. I see that the EndInit is run for the copy, so that the event
handlers are correctly added. But at some time the connection between the
tables and the event handlers is lost. I suspect that Copy() does something
after calling EndInit.

Does anybody now why this happens and how I can avoid it? Maybe EndInit is
not a good place for wireing up events?

AddThis Social Bookmark Button