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
60
NumberFormat for Grid Columns
posted

How can I set a NumberFormat (like "#,##0.00") for Columns in a Grid? I don't find an appropriate Property in FieldSettings.

Parents
No Data
Reply
  • 2070
    posted

    Hi,

     

    For that you need to set the EditorStyle property of the FieldSettings. Format and FormatProvider are exposed on the editors themselves. Something like this:

     

    <dg:FieldSettings.EditorStyle>

    <Style TargetType="{x:Type dge:ValueEditor}" >

    <Style.Setters>

    <Setter Property="Format" Value="yyyy/mm/dd"/>

    </Style.Setters>

    </Style>

    </dg:FieldSettings.EditorStyle>

     

     Hope this helps,

    Sandip

Children