Home Forums WPF controls Xceed DataGrid for WPF Removal of ColumnManagerRow heading for re-templated column?

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

    I’ve followed the “CustomViews” sample to re-template the layout of my DataRow.

    In the Xceed sample the “Notes” field in Custom TableView appears below the other columns. However, the header column still appears in the ColumnManagerRow.

    Is there anyway to remove a column from the ColumnManagerRow that you have repositioned via the DataRow style and control template?

    Thanks,
    Rich

    – Xceed DataGrid for WPF rocks! Thanks! 😀

    Imported from legacy forums. Posted by Richard (had 514 views)

    Xceed Support
    Member
    Post count: 5658

    I guess the quickest way would be to place an implicit style for the ColumnManagerCell in which you collapse the cell of the appropriate column:

    <Style TargetType=”{x:type xcdg:ColumnManagerCell}”>
    <Style.Triggers>
    <DataTrigger Binding=”{Binding RelativeSource={RelativeSource Self}, Path=ParentColumn.FieldName}” Value=”myColumn”>
    <Setter Property=”Visibility” Value=”Collapsed” />
    </DataTrigger>
    </Style.Triggers>
    </Style>

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

    User (Old forums)
    Member
    Post count: 23064

    Thanks, Perfect… that’s does the trick. I look forward to to day when that kind of solution is 2nd nature to me.

    Not only is Xceed DataGrid for WPF awesome, working with it has sharpened my WPF knowledge and appreciation.

    Thanks 🙂

    Imported from legacy forums. Posted by Richard (had 3389 views)

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