Hi!
I am expericencing an annoying bug:
Using a crgrid and a tmyquery:
The crgrid should be sorted a by a column then
when editing an entry of Tmyquery of the column with edit and post the entry will "jump" eventually depending on the sorting and the surrounding entries. the new entry will be selected and set nicely so it can be reached by gotobookmark, the old entry remains but as selected.currentrow= true and so it may mark double as really selected entries.
I happens only with multiselected row evidently.
Any clue how can i avoid it?
thx in advance
editing Tmyquery cause too many selected rows
-
iskywalker
- Posts: 16
- Joined: Mon 25 Jun 2007 15:00
-
iskywalker
- Posts: 16
- Joined: Mon 25 Jun 2007 15:00
seems that
function TMemData.CompareBookmarks(Bookmark1, Bookmark2: PRecBookmark): integer;
...
begin
...
//iskywalker
// Compare by order
// Result := inherited CompareBookmarks(Bookmark1, Bookmark2);
end;
the last line:
Result := inherited CompareBookmarks(Bookmark1, Bookmark2);
seems to be the problem.
Why is it needed?
function TMemData.CompareBookmarks(Bookmark1, Bookmark2: PRecBookmark): integer;
...
begin
...
//iskywalker
// Compare by order
// Result := inherited CompareBookmarks(Bookmark1, Bookmark2);
end;
the last line:
Result := inherited CompareBookmarks(Bookmark1, Bookmark2);
seems to be the problem.
Why is it needed?