New to Telerik UI for WPF? Download free 30-day trial

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.

Example 1: Set Attached ScrollViewer Properties

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

The same operation can be done in code-behind:

Example 1: Set Attached ScrollViewer Properties

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

The result is illustrated in Figure 1.

Figure 1: RadGridView with vertical and horizontal scrollbars

Telerik WPF DataGrid HowTo HorizontalAndVerticalScrollbar 010

See Also

In this article