Home Forums WPF controls Xceed DataGrid for WPF Style individual ColumnManagerCell

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

    Is it possible to style each ColumnManagerCell, or just one of them? I’ve looked at the standard examples for getting ride of the grouping area and the row selector pane, but I can’t figure out if you can create DataTemplates or style for individual ColumnManagerCells. Can you define a ColumnManagerCell in the same fashion you explicitly define the Columns?

    <xcdg:DataGridControl.View>
    <xcdg:TableView>
    <xcdg:TableView.FixedHeaders>
    <xcdg:ClearHeadersFooters/>
    <DataTemplate>
    <xcdg:ColumnManagerRow/>
    </DataTemplate>
    </xcdg:TableView.FixedHeaders>
    </xcdg:TableView>
    </xcdg:DataGridControl.View>

    Imported from legacy forums. Posted by Brett (had 1950 views)

    Xceed Support
    Member
    Post count: 5658

    You can configure part of the way the ColumnManagerCell is displayed by affecting the Title, TitleTemplate and TitleTemplateSelector properties of the Column.

    If however, your needs are more “complex”, the I would suggest creating a single style, applied to all ColumnManagerCell (style with an implicit key) and in the style, use Triggers to affect different values to the instance based on the ParentColumn property. This way, you should obtain a customized ColumnManagerRow.

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

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