Dear all,
I have the ultragrid with qty columns which is decimal type. I want the quantity which can be trimmed in decimal zero when ultragrid show after databind. How can I do?
PLU QTY
AL001 19.123
AL002 87.000
Changed to be
AL002 87
Hello,
I wanted to know if you were able to solve your issue based on these suggestions or you still need help. Please let me know.
Could you please review the sample attached to this post and see if it meets your requirements.Please feel free to let me know if I misunderstood you or if you have any other questions.
Dear Mike,
Then I use .ToString("#.###") is correct in my case??
Moreover which event handler of ultragrid should I use to pass the cell's value?
If I have set the ultragrid column's data type is decimal, would it be affected if I use tostring()? Does I need to change it to be string data type??
The display of the cells in the grid can be altered using the Format property on the column. The grid calls the ToString method on the cell's Value and passes in the format, so you can learn about all of the possible formats in Microsoft's documentation for the decimal data type.
Standard Numeric Format Strings
Custom Numeric Format Strings