TMS FireMonkey Grid
Example 8 : Editing demo

By default the editor type is an edit that supports lookup and autocompletion, as well as validation with several edit types. To change the editor type the demo implements the OnGetCellEditorType event.
procedure TForm1.TMSFMXGrid1GetCellEditorType(Sender: TObject; ACol, ARow: Integer; var CellEditorType: TTMSFMXGridEditorType); begin case ACol of 1: CellEditorType := etComboBox; 3: CellEditorType := etTrackBar; 4: CellEditorType := etDatePicker; 5: CellEditorType := etArcDial; 6: CellEditorType := etColorComboBox; end; end;
×