Page 1 of 1

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

Posted: Sun 09 Dec 2007 02:59
by sctrojan79
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.

Posted: Wed 12 Dec 2007 11:57
by Antaeus
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.