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
1865
Formatting Unbound Field
posted

I have the following in xamDataGrid resources:

                    <Style  x:Key="NumberStyle"  TargetType="{x:Type igEditors:XamTextEditor}">
                        <Style.Setters>
                            <Setter Property="Format" Value="#,##0.00"/>
                            <Setter Property="InvalidValueBehavior" Value="RetainValue" />
                            <Setter Property="HorizontalContentAlignment" Value="Right"/>
                        </Style.Setters>
                    </Style>

And following field:

                            <igDP:UnboundField Name="PriceLocal" Width="70" Label="Price" Column="5" >
                                <igDP:UnboundField.Settings>
                                    <igDP:FieldSettings EditorType="{x:Type igEditors:XamTextEditor}" EditorStyle="{StaticResource NumberStyle}" ></igDP:FieldSettings>
                                </igDP:UnboundField.Settings>
                            </igDP:UnboundField>

The above works for bound field but not for unbound field - please help!

Thanks.

Parents Reply Children
No Data