BeepGridColumnEditorDialog
Modal design-time dialog for managing BeepGridPro columns — add, remove, reorder, and configure column types with real-time preview
Overview
Namespace: TheTechIdea.Beep.Winform.Controls.Design.Server.Editors
Inheritance: Form
Opened from the BeepGridPro smart-tag via the EditColumns() command. Provides full visual management of grid columns at design time.
Key Features
- Visual column list with drag-to-reorder
- Add/remove/duplicate columns
- Set column HeaderText, Width, ReadOnly
- Assign column type (Text, Numeric, Date, ComboBox, CheckBox, Masked)
- Real-time preview of column layout
- Collection editor integration for complex types
Column Types
| Type | Editor | Description |
|---|---|---|
| Text | BeepGridTextEditor | Free-form text input |
| Numeric | BeepGridNumericEditor | Numeric-only input |
| Date | BeepGridDateDropDownEditor | Date picker dropdown |
| ComboBox | BeepGridComboBoxEditor | Dropdown list selection |
| CheckBox | BeepGridCheckBoxEditor | Boolean toggle |
| Masked | BeepGridMaskedEditor | Input mask (phone, SSN, etc.) |
| Generic | BeepGridGenericEditor | Fallback for unknown types |
BeepGridColumnCollectionEditor
The BeepGridColumnCollectionEditor is a CollectionEditor subclass that provides the standard .NET collection editing UI for grid columns. Features:
- Add/remove column items in the collection
- Property grid for editing individual column properties
- Type filtering for column-specific subtypes
Examples
// Open the column editor from code:
var editor = new BeepGridColumnEditorDialog(grid.Columns);
if (editor.ShowDialog() == DialogResult.OK)
{
grid.Columns = editor.Result;
grid.Refresh();
}