Class: TEgDBGridEx
property IndicatorWidthPx: Integer default 0;
Forces the width of the fixed indicator column
(ColWidths[0]), in pixels at 96 DPI - scaled by the
control’s current DPI the same way every other design-time pixel value
in this unit is (see RowHeightPx
for the equivalent on row height). Only meaningful while
dgIndicator is in Options.
0 (the default): unchanged native behavior - the
indicator column keeps TDBGrid’s own native width. Greater
than 0: the indicator column is forced to that width,
reapplied automatically on every layout pass, so it survives a font
change, a DPI change, or any other event that would normally recompute
column widths.
The hand-drawn indicator glyph (current-row arrow, edit/insert I-beam, multi-row-selection dot) is centered within whatever width the column ends up at, whether native or forced by this property.
Side effect, not a bug: the fixed corner cell (see
CornerImageIndex)
shares ColWidths[0] with the indicator column, so it grows
or shrinks along with it.