GridView.DestroyCustomization() Method
Closes the Customization Form.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v20.2.dll
NuGet Package: DevExpress.Win.Grid
Declaration
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.
- GridControl.MainView - returns the top most View in a grid;
- GridControl.FocusedView - returns the focused View;
- GridControl.DefaultView - returns the currently maximized View;
- the sender parameter of View specific events;
- GridView.GetDetailView - returns a detail clone View for a specific master row.