Home Forums WPF controls Xceed DataGrid for WPF How can I set the background color of the Column Headers?

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

    The Column class doesn’t have a property like this.

    Imported from legacy forums. Posted by Jack (had 2492 views)

    Xceed Support
    Member
    Post count: 5658

    You can create an Implicit style for the ColumnManagerCell and change the background color in this style.

    If you need column based background, then you can use triggers in the style to select appropriate background.

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

    User (Old forums)
    Member
    Post count: 23064

    <Style TargetType=”{x:Type xcdg:ColumnManagerCell}”>
    <Setter Property=”Background”>
    <Setter.Value>
    <SolidColorBrush Color=”Gold”/>
    </Setter.Value>
    </Setter>
    </Style>

    Imported from legacy forums. Posted by keith (had 3605 views)

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