We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

To have the VerticalScrollBar always visible?

Thread ID:





117111 Aug 14,2014 04:43 AM Aug 18,2014 08:31 AM WPF 1
Tags: SfDataGrid
Asked On August 14, 2014 04:43 AM


For SfDataGrid, can we make the verticallScrollBar always visible?

I tried the following 2 ways but not really working

1. To have a ScrollViewer to contain the SfDataGrid

<ScrollViewer VerticalScrollBarVisibility="Visible">
For this method, it is true that we can make the VerticalScrollBar always visible, however, it turns out that we can't use the mousewheel to scroll the datagrid.

2. Get the ScrollView inside the SfDataGrid.

I tried to get the ScrollView of the DataGrid with the following piece of code
var scrollView = (ScrollViewer)GridUtil.FindDescendantChildByType(dataGrid, typeof(ScrollViewer));

However, it seems that the scrollViewer doesn't always exist

Farjana Parveen Ayubb [Syncfusion]
Replied On August 18, 2014 08:31 AM

Hi Antony,


Thank you for contacting Syncfusion Support.


We analyzed your query. We can’t use the SfDataGrid inside the ScrollViewer. You can achieve your requirement by using ScrollViewer inside the SfDataGrid.

Please refer the below code example and sample in the following location:


Code Snippet:

    <syncfusion:SfDataGrid x:Name="sfdatagrid" Grid.Row="0"





                               ItemsSource="{Binding Path=Products}"

                               ColumnSizer="Star" />



Farjana Parveen A

Attachment: SfDataGrid_VerticalScrolling_e315948a.zip


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.