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
155
postive symbol display in numeric column
posted
hi, negative values are automatically preceded by a (-) sign. is it possible to display the sign (+) for the positive values in an integer column. Setting the format property to various settings did not yield. Is there any other way to achieve the desired display? Regards
Parents
No Data
Reply
  • 71886
    Verified Answer
    Offline posted

    Hello haraman21,

    You could use the following code sample in order to achieve this:

            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                e.Layout.Bands[0].Columns["Dosage"].MaskInput = "+nnn";
            }
    

     

    This way you should have '-' or '+' sign depending on what is the integer(negative or positive respectively).

Children