Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
510
Number Control changing automatically
posted

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.

Parents
No Data
Reply
  • 21795
    Offline posted

    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.

Children