The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi,
I am using DataBoundGrid 1.6.1.8.
I have a decimal column. How do I remove trailing Zeros from the decimal number when I show it in all my grids?
FYI, run CurrencyCells sample and set one of the CellType to "TextBox" and CellValueType to decimal. If you enter "53.89400", it converts the value to "53.894". How can I get the same behavior in a databound grid?
thanks,
- Reddy
ADAdministrator Syncfusion Team January 22, 2004 09:29 PM UTC
If you do not want to always have 3 decimal places, you can use the # formatting character instead of the 0.
style.Format = "0.###";
1.200000 is shown as 1.2
1.1234567 is shown as 1.123