using this xaml to ensure a double value is rounded to 2 decimal places
<xcdg:StringFormatConverter x:Key="stringFormatConverter" />
<s:String x:Key="roundDouble">{0:0.00}</s:String>
<DataTemplate DataType="{x:Type s:Double}">
<TextBlock Text="{Binding Converter={StaticResource stringFormatConverter}, ConverterParameter={StaticResource roundDouble}}"
HorizontalAlignment="Right" /> </DataTemplate>
for example a cell content with -155.234567 should be displayed as as -155.23
but instead I see this -155...
Its as if the cell thinks it does not have enough room for the string and truncates adding the ..
What am I doing wrong here or what else do I need to do to ensure the cell displays what I want.
btw my columns are defined dynamically at run time so I cant or its not easy to set the format at compile time using a column definition or a CellContentTemplate