- Berg Forum
- → 4rc's Content
4rc's Content
There have been 6 items by 4rc (Search limited from 29-March 23)
#11386 Scroll problem, TNxGridDataLink.DataEvent
Posted by 4rc on 13 December 2008 - 09:27 PM in NextDBGrid Component
#11385 Scroll problem, TNxGridDataLink.DataEvent
Posted by 4rc on 13 December 2008 - 07:45 PM in NextDBGrid Component
(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?
#11352 IsRowInView problem
Posted by 4rc on 01 December 2008 - 09:40 PM in NextGrid Component
I need to scroll a particular row in view if it is currently not visible. Therefore I tried to use method 'IsRowInView', but it doesn't worked as expected. Looking at the code of 'function TNxCustomGridControl.IsRowInView':
begin
Result := SelectedRow < Pred(FFirstRow + GetVisibleCount);
end;
this method doesn't respect parameter 'Index'!
Here my corrected version:
Result := (Index < (FFirstRow + GetVisibleCount)) and (Index >= FFirstRow);
Best regards
#11351 OnRowMove problem
Posted by 4rc on 01 December 2008 - 09:04 PM in NextDBGrid Component
Try to add next code in NextGrid (NxGrid.pas file)
I hope that this helps
Best regards
nice try, but this won't help, because I'm talking about TdbNextGrid. (TNextGrid already has the Row[s] property!)
Best regards
#11347 OnRowMove problem
Posted by 4rc on 01 December 2008 - 03:50 PM in NextDBGrid Component
Rows[x] property is just added in 1 release ago.
I hope that it will help.
Best regards
Hi Boki,
I have installed nextcomps_41081.zip, but there is no TDBNextGrid.Rows property!
Furthermore the version.pas states "strNextSuiteVer = '4.9.8.1'" and "strNextGridVer = '4.6'", and history.txt:
Sep 25 2008
-----------
NextGrid v4.6
Looks like the nextcomps_41081.zip isn't up to date!
#11185 OnRowMove problem
Posted by 4rc on 19 November 2008 - 08:17 PM in NextDBGrid Component
I want to reorder two records in the OnRowMove event. But I have no glue how to achieve it with the provided FromPos/ToPos integer parameters, because there isn't a Rows[] property. These parameters are kind of useless IMO.
How can I access the rows involved in the RowMove process?
Cheers,
r4c;
- Berg Forum
- → 4rc's Content
- Privacy Policy