RefreshCurrentRow
Posted: 22.09.2010, 20:42
When i use RefreshCurrentRow function with DBGridEh 3.6 component the result was invalid. Function refreshes row after current visible row or something else. I have found that variable CurrentRow in function has a wrong value.
When I have added use of UpdateCursorPos function - all working fine
Is this correct modification?
p.s. sorry for my english
Code: Select all
procedure TZAbstractDataset.RefreshCurrentRow(const RefreshDetails:Boolean);
....
if CachedResultSet <> nil then begin
RowNo := Integer(CurrentRows[CurrentRow - 1]);
Code: Select all
if CachedResultSet <> nil then begin
UpdateCursorPos;
RowNo := Integer(CurrentRows[CurrentRow - 1]);
Is this correct modification?
p.s. sorry for my english