This question is locked. New answers and comments are not allowed.
Hi,
I have problems with formatting values that dont need to be precised. For instance, my grid can sometimes contains data that i want to show with 4 decimal digits (ex: 45.6785). For this, I use the formatting: Column.DataFormatString = "{0:N4}". The problem is when this same grid displays number less precise (ex: 45.0). Users are complaining that they see too much digits for nothing: (ex: 45.0000). Is there a way to force the formatting to only apply when really needed? Like for instance specifying a maximum digit count so the formatting only apply when it needs to?
Thanks in advance,
Martin
I have problems with formatting values that dont need to be precised. For instance, my grid can sometimes contains data that i want to show with 4 decimal digits (ex: 45.6785). For this, I use the formatting: Column.DataFormatString = "{0:N4}". The problem is when this same grid displays number less precise (ex: 45.0). Users are complaining that they see too much digits for nothing: (ex: 45.0000). Is there a way to force the formatting to only apply when really needed? Like for instance specifying a maximum digit count so the formatting only apply when it needs to?
Thanks in advance,
Martin