Skip to main content

TcxCustomGridView.OnInitStoredObject Event

Occurs when a non-existent View element that is present within storage is created within the View.

Declaration

property OnInitStoredObject: TcxGridInitStoredObjectEvent read; write;

Remarks

When the View is restored from storage by calling the RestoreFromIniFile, RestoreFromStream, RestoreFromRegistry, or RestoreFromStorage method and a non-existent View element (a band, column, card row, etc.) is present within storage, the element is created within the View (provided that the method is called with True passed as the AChildrenCreating parameter). After it’s been created, the OnInitStoredObject event is fired. You can handle this event to properly initialize the created object by re-associating its events with existing event handlers and assigning its properties.

The View being restored from storage and the View element that has been created are passed as the Sender and AObject parameters of the OnInitStoredObject event, respectively.

See the example on how to use this event.

See Also