Back to Devexpress

TcxGridTableOptionsView.FixedColumnHighlightColor Property

vcl-cxgridtableview-dot-tcxgridtableoptionsview-a20f50f7.md

latest2.4 KB
Original Source

TcxGridTableOptionsView.FixedColumnHighlightColor Property

Specifies the color of the highlight effect applied to fixed columns.

Declaration

delphi
property FixedColumnHighlightColor: TdxAlphaColor read; write; default TdxAlphaColors.Default;

Property Value

TypeDefaultDescription
TdxAlphaColorDefault

The highlight effect color.

|

Remarks

The highlight effect is drawn with a translucent color on top of fixed columns. The effect’s intensity depends on the color’s alpha value, so grid draw routines limit the specified color’s maximum alpha value to 150. Use the FixedColumnHighlightColor property to explicitly define the highlight effect color if the HighlightFixedColumns property is set to True.

The following code example highlights fixed columns with a light-blue color whose alpha is 50 :

delphi
cxGrid1DBTableView1.OptionsView.HighlightFixedColumns := True; // Enables the highlight effect
  cxGrid1DBTableView1.OptionsView.FixedColumnHighlightColor := dxColorToAlphaColor(clWebLightBlue, 50);
cpp
cxGrid1DBTableView1->OptionsView->HighlightFixedColumns = true; // Enables the highlight effect
  cxGrid1DBTableView1->OptionsView->FixedColumnHighlightColor = dxColorToAlphaColor(clWebLightBlue, 50);

Note

The color of the fixed column highlight effect depends on the TcxGrid control’s LookAndFeel settings if the FixedColumnHighlightColor property is set to TdxAlphaColors.Default.

The FixedColumnHighlightColor property’s default value is [TdxAlphaColors.Default](xref:dxCoreGraphics.TdxAlphaColors.Default).

See Also

FixedColumnSeparatorColor

TcxGridTableOptionsView Class

TcxGridTableOptionsView Members

cxGridTableView Unit