Back to Devexpress

GridView.ShowCustomizationForm Event

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-003b9b5e.md

latest2.6 KB
Original Source

GridView.ShowCustomizationForm Event

Fires immediately after the Customization Form has been invoked.

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 ShowCustomizationForm
vb
<DXCategory("Customization")>
Public Event ShowCustomizationForm As EventHandler

Event Data

The ShowCustomizationForm event's data class is EventArgs.

Remarks

Handle the ShowCustomizationForm event to provide a proper response to activating the Customization Form. This can be done to update controls reflecting the form’s visible state, for instance. You can also use the ShowCustomizationForm event is to perform Customization Form initialization. This may be needed, for instance, when you need to assign a context menu to the form or change other settings. Use the GridView.CustomizationForm property to access the form.

Note that the Customization Form is destroyed each time it is closed. When shown again, it is recreated with default settings. Thus, changes to settings should be applied each time the form is shown (i.e. each time the ShowCustomizationForm event is raised).

Handle the GridView.HideCustomizationForm event if you need to respond to hiding the Customization Form.

See Also

ShowCustomization()

CustomizationForm

GridView Class

GridView Members

DevExpress.XtraGrid.Views.Grid Namespace