Skip to main content

VGridControlBase.ShowCustomizationForm Event

Fires after the Customization Form has been invoked.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v23.1.dll

NuGet Package: DevExpress.Win.VerticalGrid


public event EventHandler ShowCustomizationForm

Event Data

The ShowCustomizationForm event's data class is EventArgs.


Handle the ShowCustomizationForm event to respond to the Customization Form’s activation. This event can also be used to initialize the Customization Form. This may be required when you need to assign a context menu to the form or change other settings. The form can be accessed via the VGridControlBase.CustomizationForm property.

For more information, see Customization Form.


The following sample assigns a context menu to the Customization Form each time it is shown. The context menu contains a single item used to restore hidden rows.


using DevExpress.XtraVerticalGrid.Rows;

private void btnShowCustomizationForm_Click(object sender, EventArgs e) {
   // Show Customization Form.

ContextMenu menu = null;
private void vGridControl1_ShowCustomizationForm(object sender, System.EventArgs e) {
   menu = new ContextMenu(new MenuItem[] {new MenuItem("Restore All")});
   menu.MenuItems[0].Click += new EventHandler(menuItem1_Click);
   vGridControl1.CustomizationForm.ContextMenu = menu;

private void vGridControl1_HideCustomizationForm(object sender, System.EventArgs e) {
   if (menu == null) return;
   menu.MenuItems[0].Click -= new EventHandler(menuItem1_Click);
   menu = null;

private void menuItem1_Click(object sender, System.EventArgs e) {
   RowOperationVisible RowOperatVisible = new RowOperationVisible();

public class RowOperationVisible : RowOperation {
   public RowOperationVisible() {}
   public override void Execute(BaseRow row) {
      if (row.Visible == false && row.OptionsRow.AllowMoveToCustomizationForm) 
          row.Visible = true;
See Also