TmsFmxGrid - Selection

Hi, 


I am working on a TmsFmxGrid and I want to hide the selected cells when the grid do not have the focus. Does anyone know a way to this ?

Kind regards.

Hi, 


You could try with the following code:

procedure TForm1.TMSFMXGrid1Enter(Sender: TObject);
begin
  TMSFMXGrid1.SelectionMode := smSingleCell;
end;

procedure TForm1.TMSFMXGrid1Exit(Sender: TObject);
begin
  TMSFMXGrid1.SelectionMode := smNone;
end;

Kind Regards, 
Pieter

I will try that.


thanks.