Value of TCRDBGrid::TopRow remains "1" despite scrolling

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sctrojan79
Posts: 4
Joined: Fri 26 May 2006 21:55
Location: Los Angeles, CA

Value of TCRDBGrid::TopRow remains "1" despite scrolling

Post by sctrojan79 » Sun 09 Dec 2007 02:59

Potential Bug:

It appears that the TopRow property of the TCRDBGrid control does not update when you scroll down a dataset using the control - it remains "1" all the time.

From the Borland C++ Builder Help:
TCustomGrid::TopRow

Description

Read TopRow to determine the index of the first row in the scrollable region that is visible. Set TopRow to scroll the rows in the grid so that the row with index TopRow is the first row after the fixed rows.
According to the MyDac documentation the TCRDBGrid control descends from the TCustomGrid control.

I'm using MyDac version 4.30.1.15 on Borland C++ Builder 6 Professional, running on Windows XP SP2.

Thanks in advance for your help.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Wed 12 Dec 2007 11:57

Thank you for information. We will investigate the possibility to improve this behaviour of TCRDBGrid, but it is hardly to happen in the near future, as this product is not currently developed.
You can modify behaviour of TCRDBGrid by yourself. Its source code is available with all editions of MyDAC except the Trial Edition.

Post Reply