DataGridDoubleColumn changes entered double value on german operation system

Editors for WPF Forum

Posted 10 years ago by Sasha
Version: 14.2.0610


I have a strange behavior of DataGridDoubleColumn. I define a DataGridDoubleColumn in my datagrid this way:

 <datagrideditors:DataGridDoubleColumn DisplayIndex="2" IsReadOnly="False" Binding="{Binding FAKTOR, UpdateSourceTrigger=PropertyChanged}"/>

 So the problem is when I enter a double value, for example 15,22 and push Enter or Tab, I get 15,2200002670288.... in my cell.

Current application culture is german.

Any ideas how this can be fixed?

Thank you.

Comments (1)

Answer - Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Sasha,

Double values in .NET sometimes aren't very precise and when you enter a double value like 15,22 may end up in reality being something close like what you saw.  I would recommend that you set the Format property on the column so that you can limit the decimal places that show.

Actipro Software Support

The latest build of this product (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.