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

TeeGrid .NET for Microsoft Visual Studio .NET.
Post Reply
a.valero
Newbie
Newbie
Posts: 1
Joined: Thu Jul 09, 2020 12:00 am

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

Post by a.valero » Wed Jul 15, 2020 11:02 am

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!!

Marc
Site Admin
Site Admin
Posts: 1258
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

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

Post by Marc » Fri Jul 24, 2020 10:13 am

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
Steema Support

Marc
Site Admin
Site Admin
Posts: 1258
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

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

Post by Marc » Fri Jul 24, 2020 12:05 pm

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

Post Reply