New to Telerik UI for WinFormsStart a free 30-day trial

Scroll Modes

Updated over 6 months ago

RadGridView provides three built-in scrolling modes, which allow you to manipulate the type of scrolling. This is controlled by the ScrollMode enumeration property which has the following entries:

Smooth

This is the default value of the ScrollMode property. Items in this mode are scrolled smoothly.

WinForms RadGridView ScrollMode

C#

this.radGridView1.TableElement.RowScroller.ScrollMode = ItemScrollerScrollModes.Smooth;

Discrete

When the Discrete mode is set, the items are scrolled one at a time. The scrollbar maximum is equal to the number of the items in the view. The scrollbar SmallChange is equal to 1 and each small increment or decrement will move the items in the view with one whole item.

WinForms RadGridView ScrollMode

C#

this.radGridView1.TableElement.RowScroller.ScrollMode = ItemScrollerScrollModes.Discrete;

Deferred

In this mode, the content in the view is static until scrolling is completed.

WinForms RadGridView ScrollMode

C#

this.radGridView1.TableElement.RowScroller.ScrollMode = ItemScrollerScrollModes.Deferred;

When RadGridView's ScrollMode is set to Deferred, a small ToolTip appears when scrolling which previews the current scroll position. You could modify the text inside the ToolTip by subscribing to the ToolTipTextNeeded event of the RowScroller.

C#

this.radGridView1.TableElement.RowScroller.ToolTipTextNeeded += RowScroller_ToolTipTextNeeded;

In the event handler, you can get the text from the event arguments ToolTipText property and modify it per your needs.

C#

private void RowScroller_ToolTipTextNeeded(object sender, Telerik.WinControls.ToolTipTextNeededEventArgs e)
{
    string[] toolTipTextArray = e.ToolTipText.Split();
    e.ToolTipText = "Current Scroll Position: " + toolTipTextArray[1];
}

WinForms RadGridView ScrollMode

See Also

In this article
SmoothDiscreteDeferredSee Also
Not finding the help you need?
Contact Support