Number control values automatically changing. Its not happen in always. Rarely it happens. eg: if type 1.5.. its changing to 1.48. It happens in both number control and grid number column.
Hello Mohan,
If I understand you correctly from time to time when user changes the value of a grid cell to 1.48, and when you confirm the value, e.g. exit edit mode, the grid shows 1.5.. instead of the value user entered.
One possible reason for this could be if the width of the column is too small. If this is the case this is expected behavior. By default when the text of the cell does not fit in its width the grid trims the text and put ellipsis at its end. What you can do is increase the column's width of change text trimming. You can turn of the trimming by setting the TextTrimming property of CellAppearance to None like this:
this.ultraGrid1.DisplayLayout.Override.CellAppearance.TextTrimming = TextTrimming.None;
If this does not solve your issue, please let me know on which control this issue happens. Also, it will help a lot if you could provide small sample project reproducing this behavior.
Nope. Its not width problem. Its not changing like this always. Its rarely happens. If close the exe and open it again. It works fine.
I cant simulate this error also. Its happening only on client side PC. Its rarely coming. I cant even trace this problem.
Thank you for your feedback.
What I understood up to now is:
Is this correct? If not, please clarify the information.
I have also two additional questions:
Looking forward to your reply.
UltraGrid and Numeric Control also. Mostly on client PC. Its happening on many PC's. Not just single machine. Not multi treading application.
I looked up for similar issues in our internal system and was unable to find any. As I cannot reproduce this at my side I can only give you some guidance why this could happen. This is the steps you described initially:
If these are the steps the only reason this to happen is if there is some very specific logic in your application which converts 5.. to 48. If the steps you tried to described are these:
If these are the steps this shows that for some reason the text does not fit in the place where it should be drawn. This forces ellipsis to appear. What is more strange, and I cannot reproduce too, is that if you enter 1.48 and it does not fit, the cell should show 1.4… There should not be any roundup of the value. So this is really strange behavior. To investigate this further I will need a sample reproducing this. Otherwise there is not much we can do about it.
If none of these are the exact steps you are performing, please give me the exact steps so I can test this further.
One more thing – are you using some Creation or Draw filters in your application? This is one more point where you can change the TextTrimming and manipulate the size of the UIElements.
Hi Mohan,
As I wrote, I was unable to reproduce this behavior with UltraNumericEditor in version 7.2 of Infragistics for Windows Forms. Actually, I was unable to reproduce this in any version I tested with.
I cannot investigate this without sample reproducing this behavior. To reproduce this, I will need your custom control you have created by inheriting UltraNumericEditor. Also I will need the code of all the events you are handling for your custom control. if I do not have this information or sample reproducing this behavior there is really nothing that I can do for you. There is no way to tell you what is wrong in a control I do not have access to.
So please, try to reproduce this in small sample project and send it to me, or give me all the information about your custom control including:
Yes. we inherited UltraNumericEditor control and added some property to generalise the work among employees. we created it as separate dll. so that others wont know the code behind. they will use that property. but its not much difference than UltraNumericControl. Eg: NumValue property to avoid null. It will return 0 instead.
Thank you for your feedback and code provided.
From the code snippet you sent me it seems that either you have created your own control inheriting UltraNumericEditor or this is not UltraNumericEditor. From all the properties you are setting on the control these ones are not part of UltraNumericEditor in version 7.2 of Infragistics for Windows Froms:
If you are using control which inherits from Infragistics UltraNumericEditor please send me sample with this custom control so I can check this behavior. Note, that without such sample there is not much I can do.
Thank you for using Infragistics controls.
Its UltraNumericEditor Control. Infragistics version : NetAdvantage for .NET 2007 Vol. 2 CLR 2.0.. Its seems like V7.2.
Designer Code : Me.Numsiexchrate.AllowNegative = True Me.Numsiexchrate.AllowNull = False Me.Numsiexchrate.AutoSelect = True Me.Numsiexchrate.AutoTab = True Me.Numsiexchrate.EditBackColor = System.Drawing.Color.White Me.Numsiexchrate.EditBackColorReq = True Me.Numsiexchrate.HelpClickedStatus = TMControls.TMNumber.EHelpClickedStatus.Ok Me.Numsiexchrate.HelpMultiSelect = False Me.Numsiexchrate.Location = New System.Drawing.Point(816, 118) Me.Numsiexchrate.Max = New Decimal(New Integer() {2147483647, 0, 0, 0}) Me.Numsiexchrate.Min = New Decimal(New Integer() {-2147483648, 0, 0, -2147483648}) Me.Numsiexchrate.Name = "Numsiexchrate" Me.Numsiexchrate.NeedHelp = False Me.Numsiexchrate.NumValue = 0 Me.Numsiexchrate.PromptChar = Global.Microsoft.VisualBasic.ChrW(32) Me.Numsiexchrate.Range = TMControls.TMNumber.EnumRange.vnByte Me.Numsiexchrate.Size = New System.Drawing.Size(97, 21) Me.Numsiexchrate.SuppressZero = False Me.Numsiexchrate.TabIndex = 31 Me.Numsiexchrate.ToolTipText = "" Me.Numsiexchrate.ValidEntry = True Me.Numsiexchrate.ValueModified = True Me.Numsiexchrate.vText = "0"
Thank you for your feedback and video provided.
Now I know what the issue you are facing is. However, I was unable to reproduce this at my side. Also, I was unable to find any similar issue reported in past. In order to investigate this further I should be able to reproduce it at my side. So, can you try to reproduce this in small sample project and send this project to me.
Also, if you are not able to create such sample project, please send me information about: