Home Forums WPF controls Xceed DataGrid for WPF StatRow ContentStringFormat completely ignored

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • obiben
    Participant
    Post count: 28
    #44857 |

    Hi,

    I’ve got this config as part of my datagrid:

    
                <xcdg:DataGridControl.DefaultGroupConfiguration>
                    <xcdg:GroupConfiguration>
                        <xcdg:GroupConfiguration.Footers>
                            <DataTemplate>
                                <xcdg:StatRow Background="AntiqueWhite">
                                    <xcdg:StatCell FieldName="TotalPnL" 
                                                   ResultPropertyName="TotalPnLSum"
                                                   ContentStringFormat="{}{0:$#,##0.00}"
                                                   FontWeight="Bold"/>
                                    <xcdg:StatCell FieldName="Margin"  
                                                   ResultPropertyName="MarginSum"
                                                   ContentStringFormat="{}{0:$#,##0.00}"
                                                   FontWeight="Bold"/>
                                    <xcdg:StatCell FieldName="NetPosition"  
                                                   ResultPropertyName="NetPositionSum"
                                                   ContentStringFormat="{}{0:$#,##0.00}"
                                                   FontWeight="Bold"/>
                                </xcdg:StatRow>
                            </DataTemplate>
                        </xcdg:GroupConfiguration.Footers>
                    </xcdg:GroupConfiguration>
                </xcdg:DataGridControl.DefaultGroupConfiguration>
    

    Whether I try simpler things such as ContentStringFormat="{}{0:C2}" or the one above, my content string format is simply being ignored.

    The CellContentStringFormat in my columns works well: CellContentStringFormat="{}{0:#,0.00}"

    Is there something else I need to do?

    obiben
    Participant
    Post count: 28

    Lol, forgot about this issue, got a new ticket about it and googled my way to my own unanswered question as result #1.

    obiben
    Participant
    Post count: 28

    For some reason xceed wont let me post the solution (forbidden 403, dangerous operation detected (LOL)). I’m trying one last time: use ResultConverterParameter instead of ContentStringFormat. ContentStringFormat is a red herring.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.