Yes, you did!
NextGrid v5.9.55 works like a charm and fixes the reported issue.
Boki, you're da man!
.sundance.
Male
sundance hasn't added any friends yet.
No latest visitors to show
19 February 2015 - 10:47 PM
Yes, you did!
NextGrid v5.9.55 works like a charm and fixes the reported issue.
Boki, you're da man!
.sundance.
18 February 2015 - 12:20 PM
Please try to completely replace next method in NxGrid.pas
Please tell me how it works now.
I'd love to, but I don't have the NextGrid sources. Did my tests with the free D7 component.
Maybe you could provide a beta compilation for D7 with your recent changes.
.sundance.
15 February 2015 - 04:01 PM
Hi Boki,
I'm using lastest version of NextGrid v5.9.50 (Delphi 7).
To reproduce the behaviour, I dropped a TNextGrid and a TButton on a Form, added 3 Columns (2 x nxNumberColumn, 1 x nxTextColumn), set these options ([goHeader,goMultiSelect,goSelectFullRow]) and fill the grid with some lines:
procedure TForm1.btFillClick(Sender: TObject);
const NumLines = 10;
var i,k: Integer;
begin
NextGrid.AddRow(NumLines);
for i:=0 to NextGrid.RowCount-1 do begin
k := Random(100);
NextGrid.Cell[0,i].AsInteger := i; // Index
NextGrid.Cell[1,i].AsInteger := k; // Random number
NextGrid.Cell[2,i].AsString := 'This is info text #' + IntToStr(i);
end;
end;
Now I do this:
a. Click on the column header of the random number
b. Select any 3 lines with click & ctrl-click
c. Click on the column header of the index number
Expectation: The three lines selected in a) are still selected while their rows have changed because of resorting
Reality: Only one line is selected (the one with the highest row number before c)
Hope this helps to verify the problem.
Thanks in advance.
.sundance.
13 February 2015 - 12:47 PM
Sorry to bump this old post.
Since I don't see something like "OnBeforeSortColumn":
Is there a good work-around for my (and MFinkle's) problem that selected rows are deselected after sorting...
.sundance.

Find content