Edit this page

Enable Horizontal and Vertical Scrollbar

In order to enable horizontal and/or vertical scrollbars you need to set the ScrollViewer's attached properties HorizontalScrollBarVisibility and/or VerticalScrollBarVisibility.

XAML

<telerik:RadGridView x:Name="radGridView" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible"/>

The same operation can be done in the code-behind:

C#

private void EnableScrollBars()
{
    ScrollViewer.SetHorizontalScrollBarVisibility(this.radGridView, ScrollBarVisibility.Visible);
    ScrollViewer.SetVerticalScrollBarVisibility(this.radGridView, ScrollBarVisibility.Visible);
}

VB.NET

Private Sub EnableScrollBars()
    ScrollViewer.SetHorizontalScrollBarVisibility(Me.radGridView, ScrollBarVisibility.Visible)
    ScrollViewer.SetVerticalScrollBarVisibility(Me.radGridView, ScrollBarVisibility.Visible)
End Sub

The result can be seen on the next image.

See Also