Hi Everyone...
is possible to bind a custom StringFormat into CellContentFormat property for DataGridTextColumn??
i mean, probably i have different columns values, someones must be showed as currency values ({0:C}) and the other ones must be showed as a percentage value ({0:P}), i try to bind directly to a property called "CustomFormat" in the xaml like this:
<dataGrid:DataGridTextColumn Header="Header" PropertyName="Value" CellContentFormat="{Binding CustomFormat}" >
<dataGrid:DataGridTextColumn.HeaderStyle>
<Style TargetType="primitives:DataGridColumnHeader">
<Setter Property="HorizontalContentAlignment" Value="Right"/>
<Setter Property="FontSize" Value="22" />
</Style>
</dataGrid:DataGridTextColumn.HeaderStyle>
</dataGrid:DataGridTextColumn>
Can anyone suggest me something??
i´ll appreciate your help.