PRODUCTS » Quick Links

FEATURED PRODUCT

Set of feature-rich sophisticated looking and smoothly animated controls including calendar, listbox, imagelist, panel, buttons, pagecontrol, LEDs, spinner, slideshow, timeline, menus, ...

License only 95 EUR See More

LOGIN

Customer login to access products, support information & special benefits.

SEARCH

STAY IN TOUCH

Add your e-mail address here to receive the monthly TMS Software alerts.

 

TMS FireMonkey Grid

Example 8 : Editing demo

TMSFMXGrid

The grid supports editing that is enabled by default. In this demo, various supported editor types are demonstrated as well as setting additional properties through various helper events that are triggered when editing.

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;
 

Copyright © 1995 - 2013 TMS Software v3.5