Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
XamDataGrid Vertical Scrollbar
posted

Hi,

I am using XamDataGrid version 7.2 for WPF.

I have n level hierarchy in my xamdatagrid.

 Is there any way to hide the vertical / horizontal scrollbar ?

Thanks,

Jigar 

  • 240
    posted

    It's been posted in the forum before. You can do something like this:

    <my:XamDataGrid x:Name="m_grdResult" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                            <my:XamDataGrid.Resources>
                                <Style TargetType="{x:Type my:RecordListControl}">
                                    <Setter Property="Template">
                                        <Setter.Value>
                                            <ControlTemplate TargetType="{x:Type my:RecordListControl}">
                                                <ScrollViewer CanContentScroll="False"  Focusable="False" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled">
                                                    <ItemsPresenter/>
                                                </ScrollViewer>
                                            </ControlTemplate>
                                        </Setter.Value>
                                    </Setter>
                                </Style>
                            </my:XamDataGrid.Resources>
                        </my:XamDataGrid>