ImageOnSelectedOnly

Class: TEgDBGridEx

property ImageOnSelectedOnly: Boolean default False;

Whether a column’s data-cell ImageIndex icon (not the field’s own graphic/BLOB content) is only drawn for the selected cell or row. False (the default) shows the icon regardless of selection.

“Selected” follows dgRowSelect (inherited from TDBGrid, in Options): with it set, every column of the current row shows its icon; without it, only the exact current cell (row and column both matching) does.

Overridable per column - see TEgColumn.ImageOnSelectedOnly. OnCellImageClick only ever fires for an icon that is actually visible under this gate at the moment of the click, not one that would only appear once that same click’s own selection change completes.

See Also

(C) 2026 Easygate, Lda