Hello,
Normally I align my datagridview cells by using styles like this:
<Style.Triggers>
<DataTrigger Binding="{Binding FieldName, RelativeSource={RelativeSource Self}}" Value="Hour">
<Setter Property="HorizontalContentAlignment" Value="Center"/>
</DataTrigger>
<DataTrigger Binding="{Binding FieldName, RelativeSource={RelativeSource Self}}" Value="Alarm">
<Setter Property="HorizontalContentAlignment" Value="Center"/>
</DataTrigger> ...
However, on a usercontrol I am working on I create a datagridgroupdescription and sortdescription and add them to a collectionview that I am creating at runtime. The end result is a grouped and sorted grid however it seems to ignore my cell styles set by the datatriggers shown above. I use these datatriggers on my other usercontrols and they align the cells fine so I am not sure if my grouping and sorting operations are affecting this behavior or what. I am using tableview as my grid's rendering view as I had an issue with tableflowview not showing all of the content of the group expander's label.
Any ideas why I might be experiencing this behavior?