Dear JS-Support,
Is there any way to change the horizontal alignment from Left to Right of certain column of Datagrid ?
(Background: we have a lot of numbers -amounts- in a DataGridTextColumn: we used to align it to right to get the same decimal places are below each other)
The pseudo code In WPF :
<DataGridTextColumn Header="Amount" Binding="{Binding Amount}">
<DataGridTextColumn.ElementStyle>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="HorizontalAlignment" Value="Right" />
</Style>
</DataGridTextColumn.ElementStyle>
</DataGridTextColumn>
The problem: there is no <DataGridTextColumn.ElementStyle> in CSHTML5 current implementation.
Any advise/workaround?
Thanks in advance,
Best Regards,
Péter