We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

scrolling

Thread ID:

Created:

Updated:

Platform:

Replies:

63856 Jul 10,2007 06:09 PM Jul 10,2007 07:31 PM Windows Forms 1
loading
Tags: GridControl
rsznajder
Asked On July 10, 2007 06:09 PM

1. Can I make scrolling by PgUp/PgDown faster?

2. When I scroll back with arrow key selected row jumps from top to bottom. Is it possible to change behavior to normal - selected row on top?

thank's for help

haneefm [Syncfusion]
Replied On July 10, 2007 07:31 PM

Hi Roman,

1. Can I make scrolling by PgUp/PgDown faster?
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
You can try this code:

this.gridControl1.AccelerateScrolling = Syncfusion.Windows.Forms.AccelerateScrollingBehavior.Fast;

2. When I scroll back with arrow key selected row jumps from top to bottom. Is it possible to change behavior to normal - selected row on top?
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
You can easily prevent a row from being selected using the SelectionChanging event, and cancelling it if ArrowKey is pressed in the selections. Below is a little snippet.

private void Model_SelectionChanging(object sender, GridSelectionChangingEventArgs e)
{
e.Cancel = (e.Reason == GridSelectionReason.ArrowKey);
}

Best regards,
Haneef

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;