Dear all,
I have below statement, how to make the number to be truncate to be 1 decimal places.
this.ultragrid1.displaylayout.bands[0].columns["CASH"].Format="#,##0.00"
1.22 --> 1.2
1.26 --> 1.2, not 1.3??
rchiu5hk said: Dear all, I have below statement, how to make the number to be truncate to be 1 decimal places. this.ultragrid1.displaylayout.bands[0].columns["CASH"].Format="#,##0.00" 1.22 --> 1.2 1.26 --> 1.2, not 1.3??
Give the code I typed out below a shot.
this.ultraGrid1.DisplayLayout.Bands[0].Columns["CASH"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Currency; this.ultraGrid1.DisplayLayout.Bands[0].Columns["CASH"].MaskDisplayMode = MaskMode.IncludeLiterals; this.ultraGrid1.DisplayLayout.Bands[0].Columns["CASH"].FormatInfo = System.Globalization.CultureInfo.CurrentCulture;