# Events

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

![WinForms RadGridView Scroll Bars](https://www.telerik.com/products/winforms/documentation/assets/87ddd4b59aaca9791cd0b9820add6ed8/gridview-scrolling-events001.png)

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);
```

```VB.NET
AddHandler Me.RadGridView1.TableElement.VScrollBar.ValueChanged, AddressOf VScrollBar_ValueChanged
```

#### ScrollBar value changed event

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

```VB.NET
Sub VScrollBar_ValueChanged(ByVal sender As Object, ByVal e As EventArgs)
    Console.WriteLine(Me.RadGridView1.TableElement.VScrollBar.Value)
End Sub
```

> caution Please note that **RadGridView** **Scroll** event is NOT used.

## See Also

* [Scrolling Programmatically](https://www.telerik.com/products/winforms/documentation/controls/gridview/features/scrolling/scrolling-programmatically)
