WPFDataGrid4 Column in GroupingPanel when Column.Header is framework element

Posted by: jan.vagner on 10 December 2019, 10:50 pm EST

    • Post Options:
    • Link

    Posted 10 December 2019, 10:50 pm EST

    Hi all,

    using C1.WPF.DataGrid.4.dll (version v4.0.30319) in WPF:

    when Column.Header is set to FrameWork Element like this:

    
    <Grid>
    <TextBlock Text="(Binding ..}">
    <TextBox >
    <Grid>
    
    

    i can see, that Datagrid Column Header is ok (label and textbox is shown correctly), but when column is dropped in a GroupingPanel (ShowGroupingPanel=“True”), you can see that label is empty :frowning:

    It seems like in Header object is supported just string or TextBlock framework element fo Grouping Panel …

    May i ask you for any wokraround or idea, how to solve it?

    what about this? but I have no template for DataGridGroupColumnHeaderPresenter…

    
    <c1:C1DataGrid.GroupColumnHeaderStyle>
                            <Style TargetType="c1:DataGridGroupColumnHeaderPresenter">
                                <Setter Property="Background" Value="Aquamarine" />
                                
                                <Setter Property="Template" >
                                    <Setter.Value>
                                            <ControlTemplate TargetType="c1:DataGridGroupColumnHeaderPresenter">
                                                <!-- put template code here -->
                                            </ControlTemplate>
                                        
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </c1:C1DataGrid.GroupColumnHeaderStyle>
    
    

    Thanks

    Jan

  • Posted 12 December 2019, 10:22 pm EST

    Hi Jan,

    I have answered your same query on S1 (S1 Case: https://supportone.componentone.com/casedetail/412898). Please follow the thread over there for any further activities.

    Regards,

    Basant

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels