Re: CursorLocation -> Scrollbar behavior



For RecordNo OLEDB allows to return approximate value. Access may return
approximate value for RecordCount too. Both values are used by DBGrid. The
best solution for you is to use WHERE in command text and limit number of
rows returned for DBGrid.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"LC" <lc@xxxxxxxxxxxx> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:44228e50$1@xxxxxxxxxxxxxxxxxxxxxxxxx

Hi,

Im using XP -> D7 -> ADO -> MSAccess.

The data in some of my customers DBs have grown, making DBGrids very slow.
Wherefore I have changed the TADODataset.CursorLocation to clUseServer,
and now the data is presented a lot faster.

However, the scrollbar now works in like 3 steps, making it almost
impossible to use.
I guess this has to do with the fact, that the ADO cursor have no clue
where its located in the table, when the Cursorlocation is set to Server.

Does anybody no how to fix this?
Is there a way to set the CursorLocation to clUseServer for performance,
and still have a 'working' scrollbar in the DBGrid?


Thanks a lot
LC





.



Relevant Pages

  • Re: Fastest way to get table scheme?
    ... The other part of the problem is that it's not just *one* query ... I have a form with a dbgrid. ... by the customer through a VPN tunnel with only 64 kilobits/second. ... Everytime the vertical scrollbar is moved (or if the user presses ...
    (borland.public.delphi.database.ado)
  • Re: DBGrid und Scrollwheel
    ... Es gebt darum, einem DBGrid beizubringen, mit dem Scrollrad nicht am Ende des Viewports stehen zu bleiben. ... if Message.WheelDelta < 0 then ... wie wenn ich den Scrollbar bewege. ...
    (de.comp.lang.delphi.misc)
  • DBGrid und Scrollwheel
    ... Es gebt darum, einem DBGrid beizubringen, mit dem Scrollrad nicht am Ende des Viewports stehen zu bleiben. ... Dazu überschreibe ich in einer abgeleiteten Klasse einfach CMMouseWheel von TDBGrid: ... if Message.WheelDelta < 0 then ... wie wenn ich den Scrollbar bewege. ...
    (de.comp.lang.delphi.misc)
  • Re: ScrollBar
    ... I thought I could get rid of the ScrollBar simply by setting the height ... Try Adjusting the ClientWidth and ClientHeigth of the DBgrid ... Normally the scrollbars are set to automatic if the client ...
    (comp.lang.pascal.delphi.misc)
  • Re: ScrollBar
    ... I thought I could get rid of the ScrollBar simply by setting the height of ... Try Adjusting the ClientWidth and ClientHeigth of the DBgrid ... Normally the scrollbars are set to automatic if the client ...
    (comp.lang.pascal.delphi.misc)