procedure ActiveChanged; override;
virtual void __fastcall ActiveChanged();
Informs the TCustomDBGrid of changes in the Active property.
Applications cannot call the ActiveChanged procedure directly. Changes in the Active property trigger this procedure. When the dataset becomes inactive, ActiveChanged makes sure that the grid is not in edit mode. When the dataset becomes active, ActiveChanged makes sure that the grid does not contain references to fields that are no longer in the dataset, and that the grid does is not scrolled inappropriately.