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
80
How to use Mask property when cell style is set to DoublePositiveWithSpin ?
posted

In my application, there is a an ultragrid, in which I have used the following code in InitializeLayout method of the grid:

 e.Row.Cells[COLUMN_NAME].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DoublePositiveWithSpin; 

This is working fine as required, that is, a spin updater is being displayed in that cell, which can be used to increase or decrease the value of cell. But this restricts the value of cell ONLY UPTO 2 DIGITS AFTER DECIMAL. I want to display 4 digits after decimal. Please let me know that how this can be achieved.

Thanks in advance. 

  • 28925
    Verified Answer
    Offline posted

    Hello Ankit,

    You can override the column's MaskInput property within the IntializeRow event to customize how many digits are displayed after the decimal point. Example below:

    e.Row.Cells[0].Column.MaskInput = "nn.nnnn";

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