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
469
UltraCombo.NullText does not seem work
posted

Hi,

I am using NetAdvantage Winforms 9.2. Managed to create a reproducible code snippet as below

Can you please advise?

Form f = new Form();
Infragistics.Win.UltraWinGrid.UltraCombo uc = new Infragistics.Win.UltraWinGrid.UltraCombo();
uc.NullText = "Empty";
uc.Value = null;
uc.AlwaysInEditMode = true;
uc.Location = new Point(1,1);
Infragistics.Win.Misc.UltraButton b = new Infragistics.Win.Misc.UltraButton();
b.Location = new Point(1, 30);
f.Controls.Add(uc);
f.Controls.Add(b);
f.ShowDialog();

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi,

    I think NullText only applies when DropDownStyle is DropDownList. Otherwise, the control has to use the list to convert DataValue to DisplayText, so what you can do is put a null item on the list with the text you want.

Reply Children