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
185
Formatting a Field
posted

 Might be quite a simple question, I have bound a XamDataGrid to a SQL Server view, one field is a quantity, stored as a decimal in the DB.  When the Grid displays it, its default format is to show this decimal value as currency, but we only need it to show a decimal value without leading currency symbol.

 Having spent all day in FieldLayouts, FieldLayoutSettings and FieldSettings I'm still none the wiser.

 Any help greatly appreciated, thanks!

Parents
  • 185
    posted

     I should probably add that this:

             myField.DataType = typeof(decimal); 

    still gives the currency-formatted version.

            myField.DataType = typeof(string);

    actually prevents ANYTHING from loading, i.e. we get an empty datagrid.

     

Reply Children