Dear all,
I have the VS2010 project with using infragistics controls.
In all the ultragrid, I want the below format apply to all. How can I do??
(1) if equal to zero, show zero "0" even there are any zero after decimal.
(2) If there is decimal, it is n decimal places which can be configurable...
Hello,
I have a windows application using Infragistics UltraWinGrid 7.1
I have several numeric cells displayes. I am trying to apply the following formatting
1. When data = 0, display the zero
2. When data is null, display blank
I have bben able to do one or the other using Column.Format = "#,###" or "#,##0"
I also tried to check for the cell value and set format based on that in InitializeRow. That did not work either.
Is there a formatting that can accomplish both 1 and 2 above?
Thanks.
I got the solution to display both valid nulls and zeros.
column.Format =
"###,##0;###,###";
did the trick.
Thanks,
I have similar problem. On View mode my number column is correctly displaying the number format "###0".
However on Edit mode and on receive focus of the textbox control, the value displayed is changed into "###0.000000"
e.g. On View mode, it displays 1234. On Edit mode and on receive focus of the textbox control, the value displayed is changed into 1234.000000
Please advise how to always display in the format "###0". Thanks.