TMSFNCDataGrid trying to move the cursor position within the Scrollbar issue (from top to middle )

I Have aVCL app with a TMSFNCDataGrid, connected to a DEVART Unidac TUniQuery and TUniDataSource.

On the TUniQuery I have an Aftersroll Event that searches some other things.

When having a lot of items in the Grid, the ScrollBar appreares.

So Far So good.

The following things are working in the TMSFNCDataGrid and the AfterScroll Event:

  • Scrolling with the MouseWheel
  • navigating with the arrowkeys
  • Clicking on the scrollbar on another position

The afterscroll event is triggert, and is working fast and nicely.

But when I leftclick the Cursor in the ScrollBar of the TMSFNCDataGrid (and hold down the left button) and then try to move the scrollbutton from the top to a lower position, this is not working properly. It only moves 2/4 mm and thats it. I can repeat this several times ans after 10 minutes, i'm 20 positions lower then when I started.

What a'm i missing here?

Hi,

I couldn't really reproduce the issue here. Do you mean the thumb of the scrollbar? Could you capture this in a screencast?

I mean this button:

Could you change the ScrollMode to cell scrolling?

That doesn't help.

I did allso try to set the ScrollUpdate from gsuContinuous to gsuOnce but that's allso not the solution.

You may want to switch to custom scrollbars, since the default scrollbars always trigger a scroll operation.

TMSFNCDataGrid1.CustomScrollBars := True;
TMSFNCDataGrid1.ScrollUpdate := gsuOnce;