0

We have ExpressQuantumGrid 6.53 on Delphi XE from which we use TcxGrid components with TcxGridDBBandedTableView classes as views.

One of the most annoying problems is the way in which the grid scrolls. IOW, instead to move the cursor/current record on screen, the grid keeps the cursor in place and scrolls it's buffer.

Let's take an example:

We have in the middle of the data set the following records:

...
100
101 
102---------------< Let's say that this is the current record
103
104
105
106
107
108
...

When one clicks on the record 106 it expects to have the screen like this (the cursor will move):

...
100
101 
102
103
104
105
106---------------< This is the current record
107
108
...

...but instead it will look like this (the records move - very annoying):

...
104
105
106---------------< This is the current record
107
108
109
110
111
112
113
114
...

How can we achieve the desired behavior?

PS: Some props of the grid.view which might help:

DataController.DataModeController.GridMode := True DataController.Options.dcoFocusTopRowAfterSorting := False OptionsSelection.MultiSelect := True

Any clues?

4

0 に答える 0