GridView.HideCustomizationForm Event

Fires before the Customization Form is closed.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DXCategory("Customization")]
public event EventHandler HideCustomizationForm
<DXCategory("Customization")>
Public Event HideCustomizationForm As EventHandler

Event Data

The HideCustomizationForm event's data class is EventArgs.

Remarks

Handle the HideCustomizationForm event to perform actions before the Customization Form is closed. The event is raised regardless of whether the form is closed by end-users or by using the GridView.DestroyCustomization method.

Note: after the Customization Form is closed, it is destroyed. Thus, the GridView.CustomizationForm property returns null (Nothing in Visual Basic) when the Customization Form is invisible. If invoked again, the form will be recreated with default settings. Thus, you don't have to perform any cleanup of form settings using the HideCustomizationForm event. The event can be handled for display purposes to update controls indicating the Customization Form's visible state, for instance.

See Also