Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TAdvStringGrid
Customizing the inplace editor for fixed cells in TAdvStringGrid

In fixed cells, it is possible to define an inplace editor for fixed cells with grid.MouseActions.FixedColsEdit / grid.MouseActions.FixedColsEditor. It is possible to further customize this inplace editor or assign extra event handlers to it via grid.FixedEdit and grid.FixedComboBox that provide access to these control instances.

Example:

This sets the background color for the fixed cell regular editor:
  TEdit(AdvStringgrid1.FixedEdit).Color := clRed;
This assigns a custom OnClick handler for the fixed cell combobox inplace editor:
  TComboBox(AdvStringGrid.FixedComboBox).OnClick := MyHandler;