Skip to main content
A newer version of this page is available.
All docs
V19.2

GridView.DestroyCustomization() Method

Closes the Customization Form.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

public void DestroyCustomization()

Remarks

Closing the Customization Form destroys it. So, the GridView.CustomizationForm property returns null (Nothing in Visual Basic) after the DestroyCustomization method has been called.

If you need to perform actions before the Customization Form is destroyed or simply respond to closing it, handle the GridView.HideCustomizationForm event. The event fires regardless of whether the Customization Form is closed by end-users or by calling the DestroyCustomization method.

The DestroyCustomization method does nothing if the Customization Form is not visible.

See Columns to learn more.

Note

Detail pattern Views do not contain data and they are never displayed within XtraGrid. So, the DestroyCustomization member must not be invoked for these Views. The DestroyCustomization member can only be used with real Views that are displayed within the Grid Control. The real Views with which an end-user interacts at runtime can be accessed using the following methods.

See Also