Hey guys,
Just like the title says. I am setting the DecimalPlaces property on a GridViewDecimalColumn to a value of 2, both in the designer and in my code. When the grid displays, however, four decimal places show. Why is the GridViewDecimalColumn's DecimalPlaces property not using the value I assigned to it?
Code:
Just like the title says. I am setting the DecimalPlaces property on a GridViewDecimalColumn to a value of 2, both in the designer and in my code. When the grid displays, however, four decimal places show. Why is the GridViewDecimalColumn's DecimalPlaces property not using the value I assigned to it?
Code:
((Telerik.WinControls.UI.GridViewDecimalColumn)rgvGrid.Columns[
"Amount"
]).DecimalPlaces = 2;