Back to Devexpress

GridView.HideCustomizationForm Event

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-f221b45c.md

latest2.5 KB
Original Source

GridView.HideCustomizationForm Event

Fires before the Customization Form is closed.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Customization")]
public event EventHandler HideCustomizationForm
vb
<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.HideCustomization 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

CustomizationForm

HideCustomization()

GridView Class

GridView Members

DevExpress.XtraGrid.Views.Grid Namespace