RefreshCurrentRow

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
MaxC
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 22.09.2010, 20:15

RefreshCurrentRow

Post by MaxC »

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.

Code: Select all

procedure TZAbstractDataset.RefreshCurrentRow(const RefreshDetails:Boolean);
....
	 if CachedResultSet <> nil then begin
		RowNo := Integer(CurrentRows[CurrentRow - 1]);
When I have added use of UpdateCursorPos function - all working fine

Code: Select all

	 if CachedResultSet <> nil then begin
		UpdateCursorPos;
		RowNo := Integer(CurrentRows[CurrentRow - 1]);

Is this correct modification?


p.s. sorry for my english :oops:
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Change seems harmless, test suite doesn't complain and your problem seems solved. I committed to testing branch in rev 831.

Mark
Image
Locked