Page 1 of 1

RefreshCurrentRow

Posted: 22.09.2010, 20:42
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:

Posted: 13.10.2010, 23:15
by mdaems
Change seems harmless, test suite doesn't complain and your problem seems solved. I committed to testing branch in rev 831.

Mark