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. Image for the cookie policy date

Scroll bars

Hi folks,

I use this xaml code for basic grid:

        <syncfusion:SfDataGrid x:Name="data"
                        AutoGenerateColumns="true"
                        AllowResizingColumns="True"
                        AllowSorting="True"
                        ColumnSizer="Star">

I fill it in code behind.

How can I show both scroll bars for mouse scrolling ?

Cheers

3 Replies

GT Gnanasownthari Thirugnanam Syncfusion Team October 4, 2017 06:00 PM UTC

Hi Folks,  
  
Thank you for contacting Syncfusion support.  
  
We have found that ColumnSizer as star in your given code snippet. If you are setting ColumnSizer as star in SfDataGrid it divides the total width equally for all columns so horizontal scroll bar is not enabled. But you can enable the horizonal scroll bar by setting ColumnSizer as None instead of ColumnSizer as star in your application. 

By default in SfDataGrid Vertical scroll bar is enabled while no of rows height is exceeded the total height in SfDataGrid.  

We have prepared the sample based on your given code snippet, you can download the same from below mentioned location. 
  
Sample location: 
  
Please refer the below UG link for more details about ColumnSizer. 
  
Please let us know if you need any further assistance on this. 
  
Regards, 
Gnanasownthari T. 
 



JO Josep October 4, 2017 06:19 PM UTC

Thanks. Your solutions solved the issue



GT Gnanasownthari Thirugnanam Syncfusion Team October 5, 2017 06:25 AM UTC

Hi Folks, 
 
Thank you for your update. 
 
Please let us know if you have any further assistance on this. 
 
Regards, 
Gnanasownthari T. 


Loader.
Up arrow icon