Jump to content

uniDBGrid and navigate by code vs uniDBNavigator


mierlp

Recommended Posts

Hi

 

I have a uniDBGrid and a uniDBedit on the form

Both are connected to the same datasource.

 

On the uniDBGrid is use the uniDBGridKeydown event with this code :

 

if key=vk_home then begin

   dmBank.Bank.First;

end;

 

if key=vk_end then begin

   dmBank.Bank.First

end;

 

When i hit the END button...the uniDBedit contains the content of the LAST record

BUT the uniDBGrid will NOT navigate to the last record. The same is when hitting

the HOME button.

 

BUT

 

when i put a dbnavigator on the form and connect it to the same datasource and use

the first/end buttons then it's working and the unidbgrid will move the the correct record.

 

I use :

- Delphi Tokyo 10.2 update 2

- uniGui 1.10.0.1467

- MySQL Data Acces Component (myDAC from devArt) 9.2.6

 

 

 

 

Link to comment
Share on other sites

Hi Delphi Developer

 

Same result when using the example [DBLookupCombox - GridMode]

 

This behavior is only when you set :

WebOptions.Paged := False

and use the navigation in code it WON'T work propertly with the dbnavigator it works

 

 

When you set

 

WebOptions.Paged := True

and use the navigation in code it WILL work propertly

 

The problem is...we would use a clean grid with no pages

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...