GridViewDecimalColumn
GridViewDecimalColumn allows decimal data to be displayed and edited. GridViewDecimalColumn can be bound to fields of any numeric type.
Add GridViewDecimalColumn to the grid.
Setting a default value for empty cells
You may provide a default value using the following code:
Disable the up and down buttons of the spin editor
The code below demonstrates how you can disable the up and down arrow buttons. Using the commented code you can completely hide them.
Setting decimal places
The rich API of RadGridView allows you to define one value for the decimal places that should be shown in the spin editor of the column and another value for the cells of the column.
Setting decimal places to the spin editor
You can define how many places after the decimal point the value in the spin editor should have by setting the DecimalPlaces property of GridViewDecimalColumn:
Setting decimal places to the column cells
In order to define how the values should be displayed by the cells of the GridViewDecimalColumn in the sense of their decimal places, we should set the FormatString property of the column:
For a list of the standard numeric format strings, see Standard Numeric Format Strings