Hi,
I have in my WedDataGrid several quantities with different units of measurement per line. how do I format it my cells
Row Article Quantity Unit Number of Decimal
1 Article1 15 PC 0
2 Article2 15,190 KG 3
Thanks,
Hello David,The easiest way to do that is through Designer. Go to “Edit Columns” -> Select field -> Go to “DataFormatString”
Or you can set it in the markup:
<ig:BoundDataField DataFieldName="UnitPrice" DataFormatString="{0:C}" Key="UnitPrice"> <Header Text="UnitPrice" /> </ig:BoundDataField>
Please let me know if you need additional assistance.
Sorry if I misspoke.I want to format the number of digits of my values. It changes depending on the unit used. I have a field 'TQDecim' containing the number of decimal places to display and capture.Example:Peace unit : 0 decimalKg: 3 decimals