Page 1 of 1
TCRDBGrid how getvisiblerowcount / how refresh without Position changing
Posted: Mon 08 May 2006 09:12
by agalu
Hello
i use MYSql Data Access Components Version 4.30.0.12 for Delphi 6
and i have 2 questions:
1. How can i get the number of visible Rows in the TCRDBGrid, the Property visiblerowcount or getvisiblerowcount do not work?
2. Is there a refresh Posibility for the Grid without changing the Position of the active Record?
(For ex. you have 5 visible Rows and your are on row 5 and press the Refresh-Button the Grid puts the active Row in then center which is Row 3 but i would have the Grid refreshed without changing the Position.
Thanks for any help
Posted: Thu 11 May 2006 15:11
by Antaeus
> How can i get the number of visible Rows in the TCRDBGrid, the Property visiblerowcount or getvisiblerowcount do not work?
You can't access CRDBGrid.VisibleRowCount property because this is protected property. But you can try making class inherited from TCRDBGrid to get access to it. Please read Delphi help for more information.
>Is there a refresh Posibility for the Grid without changing the Position of the active Record?
Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next MyDAC build.
Thanks alot for your answer do you know when we can count with the next MyDac Build?
Posted: Thu 11 May 2006 16:29
by agalu
I need to know just about when you think to publish the next Build with this Bug fixed because i need to tell client when it will be ready.
(Not on days exact, but in week or month would be good)
Thanks verry mutch
André Gauthier
Posted: Fri 12 May 2006 12:18
by Antaeus
The new build of MyDAC will be available in the nearest few days.
Re: TCRDBGrid how getvisiblerowcount / how refresh without Position changing
Posted: Fri 11 Jul 2014 23:42
by eduardosic
Hi!!
>Is there a refresh Posibility for the Grid without changing the Position of the active Record?
Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next MyDAC build.
the problem persists in last version.
this is TMyQuery behavior, you can fix it?
Re: TCRDBGrid how getvisiblerowcount / how refresh without Position changing
Posted: Mon 14 Jul 2014 12:27
by PavloP
In one of the previous versions, we have modified the behavior of TMyQuery on calling the Refresh method. The old behavior will be returned in the next version. For now, you can avoid the problem by setting the TMyQuery.KeyFields property value.
Re: TCRDBGrid how getvisiblerowcount / how refresh without Position changing
Posted: Mon 14 Jul 2014 18:46
by eduardosic
Hi PavloP, how are you?
I set the keyFields to a primary key field, but don't work.
i wait new version.
Re: TCRDBGrid how getvisiblerowcount / how refresh without Position changing
Posted: Thu 17 Jul 2014 08:47
by PavloP
We have investigate the problem more deeply.
You can return the old behavior of TDBGrid on calling the Refresh method in your MyDAC build. For this, set the LocateExOldBehavior global variable value to True. The LocateExOldBehavior variable is declared in the MemDS module.
Re: TCRDBGrid how getvisiblerowcount / how refresh without Position changing
Posted: Thu 17 Jul 2014 16:19
by eduardosic
Thank's PavloP.
Re: TCRDBGrid how getvisiblerowcount / how refresh without Position changing
Posted: Fri 18 Jul 2014 08:03
by PavloP
If any questions concerning our products come up, please contact us.