Skip to main content

Overview

TeeGrid supports custom cell editors for interactive data entry. You can use any VCL/FMX control as a cell editor, including ComboBox, DateTimePicker, TrackBar, CheckBox, and more.

Basic Editor Setup

Assigning Editor Classes

Editor Events

OnCellEditing

Called before the editor is shown - use it to initialize the editor:

OnCellEdited

Called after editing - use it to process the editor value:

Editing Options

Auto-Edit

Always Visible

Enter Key Behavior

Selection Behavior

Text Selection

Advanced: Filterable ComboBox

From the demo, a ComboBox that filters items as you type:
Using the filterable ComboBox:

Complete Example

From Unit_Editors.pas:

Available Editor Types

Best Practices

  1. Initialize editors in OnCellEditing (before showing)
  2. Process values in OnCellEdited (after editing)
  3. Set ChangeData := False if you handle value setting yourself
  4. Use AutoEdit for spreadsheet-like behavior
  5. Configure EnterKey based on your data entry pattern

Next Steps