Hi. I'm stating to work with Syncfusion controls. I've created very basic C# application using SfDataGrid control and this code:
DataTable dt = new DataTable();
dt.Columns.Add("Numeric1", typeof(double));
dt.Columns.Add("Numeric2", typeof(double));
sfDataGrid1.AutoGenerateColumns = false;
sfDataGrid1.AddNewRowPosition = Syncfusion.WinForms.DataGrid.Enums.RowPosition.Bottom;
sfDataGrid1.DataSource = dt;
sfDataGrid1.Columns.Add(new GridNumericColumn() { MappingName = "Numeric1" });
sfDataGrid1.Columns.Add(new GridNumericColumn() { MappingName = "Numeric2" });
Let's say that user is starting this application, he's clicking at "Click here to add new row" box, so a new row is added to the grid and focus is set to first cell in first row. Now user is entering value "345", but the result is "3,01" which is of course not expected:
Is there any property in SfDataGrid which can control this behavior?
Please note that my OS (Windows 10) is using polish language and polish regional settings (with date format set to custom). I suppose that it may be somehow related to this problem.
Hi.
I've got exactly the same (unexpected) behavior using your sample application (please see the attached video). Can you tell me if you are single clicking on "click here to add new row" box or double clicking on it? I'm asking about this, because this is what I am exactly doing:
1) move mouse pointer to "click here to add new row" box
2) click (once) on this box
3) start typing "345" (result is "3,01")
4) press TAB key
5) start typing "345"
(result is "3,01")
I've checked that on two different machines (both have polish version of Windows 10 OS) and got the same results.
Thanks,
Chris.
Hi.
We're using polish Windows OS, so it has polish settings by default. For testing purposes I've installed new OS using Win10_21H1_English_x64.iso file (I haven't changed any regional settings, so this OS has default "US" settings). Then I installed Visual Studio Community 2019 and Synfusion Essential Studio for Windows Forms 19.2.0.44. After that I started your sample project and I repeated the same steps as before. I've made a video using program which visually captures mouse clicks and keystrokes, so you can clearly see what I was doing (please see attached file). Still got the same behavior, so this is not related to polish regional settings. OS info:
I've uploaded video file again (there was something wrong with previously uploaded file so I've deleted it).
Edit: I think that the most important thing is that I'm not using mouse clicks to activate every field. I suspect that probably you're doing the opposite - which is hard to say for sure, because mouse clicks are not visible on your video.
Please try to click only once (single-click, not double-click) to activate the grid and then do not use any more mouse clicks (to activate next field use TAB key only). This should lead to the same bahovior as mine.
Attachment: datagrid_english_video_6482c5b2.zip