如何正确设置带小数的单元格?

时间:2013-10-05 18:57:53

标签: c# gridview devexpress decimal

我正在尝试使用具有2个精度的Decimal动态设置单元格,但是当我设置它时,它会失去其精度。

这是我失去精确度的代码。

// decimal total=123.22;
// int row_index=0;
// int total_cell_index=13;
gv.GetDataRow(row_index)[total_cell_index] = total;

但单元格设置为123.它失去了精度。我该怎么做才能解决这个问题?

0 个答案:

没有答案