Sign in Join
FPDoc Onlineexperiment

TCustomGrid.SelectedColor property

Member of TCustomGridprotectedIn unit Grids

Color used for selected cells in the grid.

Declaration

pascal
property SelectedColor: TColor read GetSelectedColor write SetSelectedColor;

Description

SelectedColor is a TColor property which contains the color used for the background in selected cell(s). SelectedColor is used in PrepareCanvas to set the brush color for the control Canvas when IsSelected is True. The default value for the property is clHighlight as assigned in the constructor for the class instance.

Changing the value in SelectedColor causes the Invalidate method to be called to redraw the control.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.