void SetupContainerEdit() { this.containerEdit = new GridViewQuickColumnCustomizationContainerEdit(View); ContainerEdit.Text = string.Empty; ContainerEdit.Properties.AutoHeight = false; ContainerEdit.Properties.LookAndFeel.ParentLookAndFeel = View.GridControl.LookAndFeel; ContainerEdit.Properties.Appearance.BackColor = Color.Transparent; ContainerEdit.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; ContainerEdit.Properties.Buttons.Clear(); ContainerEdit.Closed += new ClosedEventHandler(OnClosed); ContainerEdit.Bounds = GetColumnButtonBounds(); if (!PopupSize.IsEmpty) { ContainerEdit.Properties.PopupStartSize = PopupSize; } ContainerEdit.Parent = View.GridControl; }
void OnClosed(object sender, ClosedEventArgs e) { ContainerEdit.Dispose(); this.containerEdit = null; State = ColumnCustomizationState.None; }