BindingFormat

The BindingFormat property is useful when displaying these types of data: Integer, Quantity, Price, Date, Time, DateTime, Percentage, Weight. These values adjust how the underlying value gets formatted and also how any input text gets transformed back into the source value for the data binding (eg: the value in the data row).

Price and Quantities + decimal places

For example, using the Price value for the BindingFormat property will display values using 2 decimal places. The number of decimal places can be modified using the following ways:

  • For Quantity you can adjust the default number of decimals globally by setting the menge_nachkommastellen parameter in the SP module. The default is 2

  • For both Quantity and Price you can use the BindingParameter property and specify a number of decimals (eg: ... BindingFormat="Price" BindingParameter="3" ... will display the value with 3 decimal places)

Last updated