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.
Is there a way to apply a numeric format string to the value in the TextBox?
For example I want to Format the DoubleValue in a DoubleTextBox with the numeric format string "#,##0.####".
I have set the Double Text box to 4 decimal places which is fine but (not surprisingly some might say) it displays the double 0.0 as "0.0000", I only want the 4dp precision as and when the double requires it.
ADAdministrator Syncfusion Team February 10, 2005 08:39 PM UTC
Hi Mark,
The DoubleTextBox class uses a NumberFormatInfo internally. Since NumberFormatInfo works like you describe, so does DoubleTextBox. However, it should be possible to dynamically update NumberDecimalDigits to affect how the number is displayed.
Regards,
Gregory Austin
Syncfusion, Inc.