TCRDBGrid how getvisiblerowcount / how refresh without Position changing
TCRDBGrid how getvisiblerowcount / how refresh without Position changing
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
			
									
									
						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
> 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.
			
									
									
						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?
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
			
									
									
						(Not on days exact, but in week or month would be good)
Thanks verry mutch
André Gauthier
- 
				eduardosic
 - Posts: 387
 - Joined: Fri 18 Nov 2005 00:26
 - Location: Brazil
 
Re: TCRDBGrid how getvisiblerowcount / how refresh without Position changing
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?
			
									
									
						>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
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.
			
									
									
						- 
				eduardosic
 - Posts: 387
 - Joined: Fri 18 Nov 2005 00:26
 - Location: Brazil
 
Re: TCRDBGrid how getvisiblerowcount / how refresh without Position changing
Hi PavloP, how are you?
I set the keyFields to a primary key field, but don't work.
i wait new version.
			
									
									
						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
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.
			
									
									
						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.
- 
				eduardosic
 - Posts: 387
 - Joined: Fri 18 Nov 2005 00:26
 - Location: Brazil
 
Re: TCRDBGrid how getvisiblerowcount / how refresh without Position changing
If any questions concerning our products come up, please contact us.