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.
Thank you for your feedback.
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.
Ok, I will wait for video showing this issue. After I have the video I will try to investigate this further.
How to send video? No upload option..
While replying click on Options tab. There is Add/Update button which allows you to upload attachment to your post. Note that attachments should be pictures or ZIP archive. So put your video in ZIP archive and attached it to your next post. If you are still unable to attach files you can also send your files to support@infragistics.com. Please, if you use this email add to the mail’s subject this number # CAS-178598-J4X8D7.
Looking forward to your reply and video provided.
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:
Looking forward to your reply.
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: