I need to implement feature like this. Just imagine.
You have a grid on your form. Than you click on field title and choose menu «Select similar». The grid looks what is the value in the active cell and must select all rows which have the same value in that field (loop by column).
After that if you press key arrows (change active row) selected items don't lose their states.
Here is the code to see that bug.
CODE
Grid.BeginUpdate;
for j := 0 to Grid.RowCount - 1 do begin
Grid.Selected[j] := true;
end;
Grid.EndUpdate;
Grid.SetFocus;
for j := 0 to Grid.RowCount - 1 do begin
Grid.Selected[j] := true;
end;
Grid.EndUpdate;
Grid.SetFocus;
How to solve this?











