Back to Devexpress

TcxCustomGridView.OnInitStoredObject Event

vcl-cxgridcustomview-dot-tcxcustomgridview-dc17fc47.md

latest3.3 KB
Original Source

TcxCustomGridView.OnInitStoredObject Event

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

Declaration

delphi
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

TcxCustomGridView.RestoreFromRegistry

TcxCustomGridView.RestoreFromStream

TcxCustomGridView.StoreToIniFile

TcxCustomGridView.StoreToRegistry

TcxCustomGridView.StoreToStream

Example: TcxCustomGridView.OnGetStoredProperties, TcxCustomGridView.OnGetStoredPropertyValue, TcxCustomGridView.OnSetStoredPropertyValue, TcxCustomGridView.OnInitStoredObject

TcxCustomGridView Class

TcxCustomGridView Members

cxGridCustomView Unit