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

Events

Updated over 6 months ago

There are a vertical and a horizontal scroll bar objects for the vertical and horizontal scroll bars respectively.

WinForms RadGridView Scroll Bars

They can be accessed via the TableElement.VScrollBar and TableElement.HScrollBar properties. You can detect when one of the scroll bar's value changes by handling the ValueChanged event of the respective RadScrollBarElement.

For instance, to subscribe to ValueChanged event of the vertical scroll bar use the following code:

C#
radGridView1.TableElement.VScrollBar.ValueChanged += new EventHandler(VScrollBar_ValueChanged);

ScrollBar value changed event

C#
void VScrollBar_ValueChanged(object sender, EventArgs e)
{
    Console.WriteLine(this.radGridView1.TableElement.VScrollBar.Value);
}

Please note that RadGridView Scroll event is NOT used.

See Also

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