Home Forums WPF controls Xceed DataGrid for WPF Grouping style

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

    Hi,

    How can I change the default color of the side bar of the grouping items that appears when you group by columns?
    I have already changed the GroupHeaderControl but it comes with an ugly gray bar (something like the grid’s RowSelectorPane)

    Hope you can help me out!

    Thanks!

    Imported from legacy forums. Posted by Lilian (had 2379 views)

    Xceed Support
    Member
    Post count: 5658

    I am not sure of exactly what you mean…

    <b>Scenario #1:</b>

    To change the look of the RowSelector displayed next to a GroupHeaderControl, you need to set the attached property “RowSelectorPane.RowSelectorStyle” in the GroupHeaderControl’s style.

    example:

    <code>
    <Style TargetType=”{x:Type xcdg:GroupHeaderControl}”>
    <Setter Property=”xcdg:RowSelectorPane.RowSelectorStyle>
    <Setter.Value>
    <Style TargetType=”{x:Type xcdg:RowSelector}>
    <!– determine how you want to customize the look of your row selector here –>
    </Style>
    </Setter.Value>
    </Setter>
    </Style>
    </code>

    <b>Scenario #2:</b>

    To change the look of the “bar” that is displayed for each group level next to each DataRow, you need to define an implicit style for the GroupLevelIndicator:

    <code>
    <Style TargetType=”{x:Type xcdg:GroupLevelIndicator}”>
    <!– determine how you want to customize the look of your group level indicator here –>
    </Style>
    </code>

    Note: you can refer to the RowSelector and/or GroupLevelIndicator styles availlable for each view/theme provided in the “themes” sub-folder of the Xceed DataGrid for WPF if you need a reference on how to create your own.

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

    User (Old forums)
    Member
    Post count: 23064

    Thanks!

    It solved my problem… i was looking for the GroupLevelIndicator …

    Imported from legacy forums. Posted by Lilian (had 3515 views)

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