Is there anyway to determine which rows are currently selected in a multi-select TStringGrid
, or a TCustomGrid
for that matter. A property would be ideal.
I know that there is the gdSelected
property that gets set in the DrawCell
event,
procedure DrawCell(ACol, ARow: Longint; ARect: TRect; AState: TGridDrawState);
I can check AState
for gdSelected
, and keep track of this in an array somewhere, but this seems kludgey.