Delphi Firemonkey StringGrid cancel selection [duplicate]


This question already has an answer here:

How to set 'selected' property of TGrid to -1

2 answers

I have a Firemonkey StringGrid and I want to set its selectedcell to “nil”.

in a TreeView I can do TreeView.Selected := nil;but the Selected property of a StringGrid is an integer

The idea is for it to look like a StringGrid does right after you create it

(setting Selected to -1 or doing StringGrid.SelectRow(-1) does not work

Comments are closed.