Home Forums WPF controls Xceed DataGrid for WPF Hiding the scroll bar

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #22424 |

    Bonjour,

    I have created a custom app that uses the DataGrid in a simple WPF Grid or StackPanel. The DataGrid is smaller than the window, and I get scrollbars. How does one turn these scrollbars off?

    Merci d’avance,
    Friedrich

    Imported from legacy forums. Posted by Friedrich (had 2684 views)

    Xceed Support
    Member
    Post count: 5658

    <code>
    <Style TargetType=”{x:Type xcdg:TableViewScrollViewer}”>

    <Setter Property=”HorizontalScrollBarVisibility”
    Value=”Auto” />
    <Setter Property=”VerticalScrollBarVisibility”
    Value=”Auto” />
    </Style>
    </code>

    Alternately, with those properties, you can force display or completely hide the scrollbars.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 350 views)

    User (Old forums)
    Member
    Post count: 23064

    Marc,

    all is well – ton truc fonctionne. Merci pour avoir repondu si rapidement.

    Friedrich

    Imported from legacy forums. Posted by Friedrich (had 3766 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.