[SOLVED] StringGrid hide selection? lazarus / 31-LCL ---------------------------------------------------------------------- SunyD · 2017-03-28 09:45 Hello, is there an option to hide of selection in stringgrid, like the option dgAlwaysShowSelection in TDBGrid ? If no, maybe we can add the option goAlwaysShowSelection to TStringGrid. In TDBGrid it is a few lines of code. ---------------------------------------------------------------------- SunyD · 2017-03-28 10:26 I made modifications in Grids.pas if anyone wants here is it: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i //TGridOptions have already 32x enums so added new Property AlwaysShowSelection//dgAlwaysShowSelection can be removed from TDBGrid.Options because it has same effect.  TCustomGrid=class(TCustomControl)  private    fAlwaysShowSelection : Boolean; //soner added  published    property AlwaysShowSelection : Boolean read fAlwaysShowSelection write fAlwaysShowSelection; //soner added  end;    procedure TCustomGrid.GetSelectedState(AState: TGridDrawState; out  IsSelected: boolean);begin  IsSelected := (gdSelected in aState)      and (fAlwaysShowSelection or Self.Focused); //soner added   //..end.