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

3 sujets de 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • 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.

3 sujets de 1 à 3 (sur un total de 3)
  • Vous devez être connecté pour répondre à ce sujet.