Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomGridView.OnInitStoredObject Event

In This Article

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