Hi,
(NextSuiteVer = '4.9.8.1', D2007, Advantage 9.1)
when I use a 'TnextDBGrid' in conjunction with a 'TadsTable' then I have serious problems with scrolling.
e.g: When the first row of the grid is selected and I scroll up using a 'TdbNavigator' then only the first row will be updated.
Therefore I changed the following line in 'TnxGridDataLink.DataEvent' (added deDataSetScroll):
if Event in [deDataSetChange, {$IFNDEF DELPHI6}deDisabledStateChange,{$ENDIF} deLayoutChange] then
into:
if Event in [deDataSetChange, {$IFNDEF DELPHI6}deDisabledStateChange,{$ENDIF} deLayoutChange, deDataSetScroll] then
Now scrolling via 'TdbNavigator' or keyboard is ok, only scrolling with the scrollbar button will show a wrong result, when dataset.EOF is true. IOW. selected row is the last record, then the record scrolls up, but not the last row. The rows will be filled with the prior record data:
e.g:
record 5
record 6
record 7
record 8
record 9 (last record)
after scrolling now down:
record 6
record 7
record 8
record 8
record 9 (last record)
...
The scrollbar buttons don't respect dataset.EOF nor dataset.BOF!
Any ideas?
4rc
Member Since 10 Sep 2007Offline Last Active Apr 12 2010 04:55 PM