Disable calls to Changed when adding many objects to TObjectList

Issue #229 closed
Bas Schouten created an issue

I'm using the TObjectDataset with a Spring TObjectList. When adding a lot of objects to the list the Index is rebuild after every insert. Its a lot faster is you set the onChanged.Enabled to False, but how do i get it to rebuild the index when setting the onChanged.Enabled back to True?

Maybe the TObjectDataset.DisableControls and EnableControls should also set/reset this property to speed things up?

Comments (6)

  1. Log in to comment