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
140
Wingrid column style
posted

User should be able to enter numbers with 4 decimal places. But when they tab out, it should not show the trailing zeros.

That is Mask input is set as "{double:10.4}". If I enter 12.3000 and then tab, it should just show 12.3.

I set the style and maskinput. Is there a way to accomplish this?

Parents
No Data
Reply
  • 29105
    Suggested Answer
    Offline posted

    Hello Sowmya,

    Thank you for contacting Infragistics.

    You can apply the following format with pound signs (#) that will supress any numbers (zeros) while the cell is not in edit mode.

    For example,

    this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].Format = "0.0###";

    Let me know if you have any questions regarding this matter.

Children