Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
220
Custom format of summary required using IValueConverter
posted

Hi

I have an "IValueConverter" format cell contents in a data bound grid - it works a treat thanks to Petar Monov.  My next challenge is to apply the same formatting to the row summaries - re-using the same IValueConverter (I hope!).

Petar suggested this XAML for the cell contents .. but I can't get the syntax for the summary:

<igDP:Field Name="Distance" >

    <igDP:Field.Settings>

        <igDP:FieldSettings >

            <igDP:FieldSettings.EditorStyle>

                <Style TargetType="{x:Type igEditors:XamNumericEditor}">

                    <Setter Property="ValueToDisplayTextConverter" Value="{StaticResource FormatDistance}" />

                </Style>

            </igDP:FieldSettings.EditorStyle>

        </igDP:FieldSettings>

    </igDP:Field.Settings>

</igDP:Field>

My summary will be a "sum" of the "Distance" column.  I can get the summary to appear, but it is not formatted using my custom formatter.

Any ideas would be appreciated.

Regards

Gary