Home Forums WPF controls Xceed DataGrid for WPF Fixedheaders and scrollbar

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

    Hi everybody,

    I need to syncronize the horizontal scrollbar position of the grid, with the posittion of my fixed headers content: if the grid columns have an extension bigger than the available space, the horizontal scrollbar has shown (and that’s what i expected).

     If i move the scrollbar to show hide columns, i don’t want to move also the fixed headers. A solution could be to sincronize the scrollbar position with the left margin of the fixed headers, but i don’t know how…..

    thanks

    Matteo

    Imported from legacy forums. Posted by Matteo (had 542 views)

    User (Old forums)
    Member
    Post count: 23064

    I solved the problem: i bound directly (using a converter!) the HorizontalOffset of the TableViewScrollViewer parent… et voilà movig the scrollbar the fixed header stay “fixed”……..

     

    <Style TargetType=”{x:Type xceed:GroupByControl}”>

    <Setter Property=”Margin”

    Value=”{Binding RelativeSource={RelativeSource AncestorType={x:Type xceed:TableViewScrollViewer}},

    Path=HorizontalOffset, Converter={StaticResource ScrollBarOffsetToLeftMarginConverter}}”/>

    <Setter Property=”MinWidth”

    Value=”{Binding RelativeSource={RelativeSource AncestorType={x:Type ScrollContentPresenter}}, Path=ActualWidth}” />

    </Style>

    Imported from legacy forums. Posted by Matteo (had 1911 views)

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