1

I have set the following format for ultragrid column :

ultraGrid.DisplayLayout.Bands[0].Columns[0].Format = "0.####";

Now this rounds off the data. Rather I want it truncated. eg 99.99999999 => 99.9999 and not 99.9999999 => 100

abhinav pandey
  • 574
  • 2
  • 8
  • 21

1 Answers1

0

The display is how .NET displays the value with the format string and you would get the same result using the format string outside of the grid. The rounding is documented in the Custom Numeric Format Strings topic on MSDN.

As far as approaches to change display the numbers as desired in .NET you can refer to the following questions:

For these approaches to work with the grid it would be best to update the values in the data source the grid is bound to.

Community
  • 1
  • 1
alhalama
  • 3,218
  • 1
  • 15
  • 21