DataGrid edit double value

Hello,

I have a problem with editing double type values in data grid control - when I pressed '.' nothing happens and when I pressed ',' (we use comma "," for decimal separation) applicatoin crashed with error: System.FormatException: Input string was not in a correct format.
Here is column definition:
<sfgrid:GridNumericColumn MappingName="TestValue" HeaderText="TestValue" AllowEditing="True"/>

and data model:
private double testValue;
public double TestValue
        {
            get => testValue;
            set { testValue = value; RaisePropertyChanged("TestValue"); }
        }

will be great if you could help me with this.

1 Reply

VR Vigneshkumar Ramasamy Syncfusion Team August 14, 2018 10:45 AM UTC

Hi Damian,  
  
Thanks for contacting Syncfusion support.  
  
We have analyzed your query for the ‘.’ value is not updated in the GridNumericColumn when editing and exception occurs when enter ‘,’ comma. We have prepared a sample and validate the same from our side and the GridNumeric column is working fine in all the possible cases as excepted. We have tested in the latest release version 16.2.0.46. We have attached the tested sample for you reference and you can download the same from the below link.  
  
  
In case, if you are still facing the issue from your side. Please modify the attached sample to reproduce the issue which will be helpful for us to validate the issue and provide you the solution at earlier.  
  
Regards,  
Vigneshkumar R 


Loader.
Up arrow icon