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

RadGridView with vertical and horizontal scrollbars

See Also

In this article
Not finding the help you need? Improve this article