I created Datagrid in my WPF project and binded ItemsSource
with object that contains double
type variable amount
. I binded DataGridTextColumn
with amount
variable and used UpdateSourceTrigger
to update it on any change by setting it to PropertyChanged
(I really need this). Problem is, by typing for example 3,5
, after source update value is changing to 35
. When I'm typing 3.5
, after update it stays as 3.5
.
What I tried?
- Changing
CultureInfo
in wholeThread
andUIThread
toInvariantCulture
. - Checking my current OS region, by default it should use comma, not dot.
I have no idea, what problem is here. It's WPF project on .NET Framework 4.8. OS is Windows 10 and IDE is latest Visual Studio 2019.