Scroll Bars are not visible

Dear Support

The Scroll Bars in my DataGrid are not visible. As I understood those should be visible without an additional setup, right?


Here is my setup:

<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Button Grid.Row="0"
Content="Load Database"
Width="160"
HorizontalAlignment="Left"
Margin="2"
Click="ButtonBase_OnClick"/>
<syncfusion:SfDataGrid Grid.Row="1"
x:Name="MainDataGrid"
VerticalAlignment="Stretch">
</syncfusion:SfDataGrid>

</Grid>
MainDataGrid.ItemsSource = DBLoader.GetDataView("DYN_cyclist", false);

How can I achieve that the scroll Bars are visible?

I already tried.

ScrollViewer.HorizontalScrollBarVisibility = "Visible" but did not work so far.


T


3 Replies

VS Vijayarasan Sivanandham Syncfusion Team July 9, 2021 06:07 AM UTC

Hi Patrick,

Thank you for contacting Syncfusion Support.

If the SfDataGrid size is greater than view size, scroll bar automatically appears. SfDataGrid does not need any properties to enable the scrollbars.

The reported problem occurs due to RowDefinition Height property set as Auto.  You can resolve the reported problem by set Star value for Height property of RowDefinition in Grid. Please refer the below code snippet, 
<Grid> 
        <Grid.RowDefinitions> 
            <RowDefinition Height="40" /> 
            <RowDefinition Height="*" /> 
        </Grid.RowDefinitions> 
        <Button Grid.Row="0" 
            Content="Load Database" 
            Width="160" 
            HorizontalAlignment="Left" 
            Margin="2" 
            Click="ButtonBase_OnClick"/> 
        <syncfusion:SfDataGrid Grid.Row="1" 
                           x:Name="MainDataGrid" 
                           VerticalAlignment="Stretch"> 
        </syncfusion:SfDataGrid> 
</Grid> 


Please let us know if you have any concerns in this. 
 
Regards, 
Vijayarasan S 



PA Patrick July 9, 2021 03:45 PM UTC

That was the case. Thank you for the fast response.


BR Patrick



VS Vijayarasan Sivanandham Syncfusion Team July 9, 2021 04:17 PM UTC

Hi Patrick,

Thanks for the update.

We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you😊.

Regards,
Vijayarasan S

Loader.
Up arrow icon