Actually a subject

when i do

var view = theDataTable.DefaultView; theDataTable.Merge(theDataTable2) 

then the DataView generates a ListChanged event at the very end of the union, in which e.ListChangedType == Reset . As a result, the control that is attached to the view makes a complete reset. How to deal with it? Is it possible to make merging so that it proceeds line by line, giving the event of adding rows?

  • Sobsna, usually one Reset much cheaper than N operations Add\Remove - Monk
  • As an option - to make your own Merge , which just the same will perform the usual Add , Remove . - Monk
  • @Monk, of course cheaper ... Only I would like to choose what to donate myself ) - iRumba
  • @Monk, but RejectChanges doesn’t call Reset, but deletes / adds all rows by element - iRumba
  • Because this is a different method and is intended to undo the changes. - Monk

0