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
215
UltraNumericEditor shows _ while using in UltraGridCell
posted

Hi,

I am creating a dynamic grid cell which may have numeric editor or text editor or combo etc,

My code is below to create the dynamic numeric editor control. This editor control has _ and not able to see the entered text while focus.

UltraNumericEditor num = new UltraNumericEditor();
num.Nullable = true;
num.PromptChar = ' ';
num.Appearance.TextHAlign = HAlign.Left;
num.NumericType = NumericType.Double;
num.FormatString = "0.00";
num.MaxValue = 9999999.99;
num.MinValue = -9999999.99;
ugr.Cells["Value"].EditorComponent = num;

Need to use the numeric editor without _ or spaces. the entered text should show while focus

Thanks,

Dhanasekaran

Parents
No Data
Reply
  • 23930
    Offline posted

    Hi Dhanasekaran,

     

    Thank you for posting in our forums.

     

    The cell in the grid will use the PromptChar specified on its column, not the PromptChar specified on its EditorComponent. As the PromptChar by default is “_” you see this symbol as the prompt char when you are editing the cell. What you can do in this case is to set the prompt char to “ ” on the column itself:

     

    grid.DisplayLayout.Bands[bandKeyOrIndex].Column[“Value”].PromptChar = ‘ ’;

     

    Please let me know if you have any additional questions.

Children