In any case, to determine which rows are currently selected in multi-select TStringGridor TCustomGrid. The property would be perfect.
I know that there is a property gdSelectedthat is set in the event DrawCell,
procedure DrawCell(ACol, ARow: Longint; ARect: TRect; AState: TGridDrawState);
I can check AStatefor gdSelectedand track this in an array somewhere, but it looks like kludgey.
source
share