[GIS] ArcObjects: IMapEvents.FeatureClassChanged doesn’t fire if the layer’s previous data source was invalid

add-inarcgis-10.0arcobjectsc

Is there any other event besides IMapEvents.FeatureClassChanged that will be fired when a layer's data source changes? FeatureClassChanged doesn't seem to fire if the layer's previous data source was invalid (red exclamation mark next to the layer in the TOC).

Best Answer

Well I guess the only answer to this question is that the only event that is fired when a layer's data source changes from a broken data source is IActiveViewEvents.ContentsChanged.

It doesn't tell you what changed, only that something changed, which is all I really needed. I suppose if you need to know what changed you would have to cache the state of what you were looking for and check it each time this event is fired.