Home Forums WPF controls Xceed DataGrid for WPF Changing the ConnectionLinePen of the GroupByControl

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

    I’m trying to change the ConnectionLinePen of the GroupByControl i.e. when column headers are dropped into the GroupByControl, they are connected in a staircase fashion by a line, that is by default black. I want to change the color to white. When I do the following, the color does not change:

        <Window.Resources>
            <Pen x:Key=”ConnectionLineBrush” Brush=”White” Thickness=”3″ />
        </Window.Resources>

         <Grid>
            <Grid.Resources>
                <xcdg:DataGridCollectionViewSource x:Key=”cvs_orders”                                                                                                               Source=”{Binding Source={x:Static Application.Current}, Path=Orders}”/>
               

                <Style TargetType=”{x:Type xcdg:GroupByControl}”>
                    <Setter Property=”ConnectionLinePen” Value=”{StaticResource ConnectionLineBrush}” />
                </Style>

            </Grid.Resources>

            <xcdg:DataGridControl x:Name=”OrdersGrid”  ItemsSource=”{Binding Source={StaticResource cvs_orders}}”/> 
         </Grid>

    Is this not the correct place to or manner to change the ConnectionLinePen?

    Any help would be appreciated. 

    Imported from legacy forums. Posted by Michael (had 405 views)

    Xceed Support
    Member
    Post count: 5658

    If you are using version 2.0, you should target HierarchicalGroupByControl rather than GroupByControl.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 314 views)

    User (Old forums)
    Member
    Post count: 23064

    Excellent. Thank you.

    Imported from legacy forums. Posted by Michael (had 744 views)

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