Page 1 of 1

VirtualModeData column sorting, vertical scroll bar and Page Up and Down key

Posted: Wed Jul 15, 2020 11:02 am
by 21089065
I'm using VirtualModeData mapping a two dimension string array.

I need to sort the columns and I can't see any sample about doing it.

How do vertical scroll bar interacts with cursor row position? What are this data represents?

Code: Select all

                tGrid1.ScrollBars.Vertical.Maximum = ??;
                tGrid1.ScrollBars.Vertical.SmallChange = ??;
                tGrid1.ScrollBars.Vertical.LargeChange = ??;
The Key Page Up moves the cursor row up 10 rows. Where is the number of rows to move set?
The Key Page Down moves the cursor row to row number 11. This is not normal!!

Re: VirtualModeData column sorting, vertical scroll bar and Page Up and Down key

Posted: Fri Jul 24, 2020 10:13 am
by Marc
Hello,

Apologies for the delay with this reply.

Please look at this example location:
https://github.com/Steema/TeeGrid-for-. ... er/Sorting

The SortableColumns example includes a VirtualDataset.

We'll follow up with a reply to te second part of your question.

Regards,
Marc Meumann

Re: VirtualModeData column sorting, vertical scroll bar and Page Up and Down key

Posted: Fri Jul 24, 2020 12:05 pm
by Marc
Hello,

Re. "The Key Page Up moves the cursor row up 10 rows. Where is the number of rows to move set?"
That is currently fixed at 10. We'll add a property to control that. (http://bugs.teechart.net/show_bug.cgi?id=2352)

Re. The Key Page Down moves the cursor row to row number 11. This is not normal!!
My interpretation is that the cursor is already at row 1 so moves 10 to row 11. We can review that, I see another issue here, that the page-down doesn't continue beyond the first jump (http://bugs.teechart.net/show_bug.cgi?id=2351). We'll fix that and review related functionality.

Re. "tGrid1.ScrollBars"
Yes, these are using standard Windows Forms Scrollbars. I agree that their use is not clear. We'll clarify that for the next build release.

Regards,
Marc