[CLOSED] How do you SET a ComboBox back to show the Empty Text in the Codebehind ??

  1. #1

    [CLOSED] How do you SET a ComboBox back to show the Empty Text in the Codebehind ??

    I tried a few ways and nothing seems to work.
    cbTest.SelectedItems.Add(new ListItem { Value = string.Empty });
    cbTest.EmptyText = "Select a Shift";
    Last edited by Daniil; Jul 04, 2012 at 2:28 PM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi,

    Please use:
    this.ComboBox1.ClearValue();

Similar Threads

  1. [CLOSED] ComboBox didn't show all the text
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jun 18, 2012, 11:38 AM
  2. [CLOSED] HTMLEditor - dropped text does not show up in codebehind
    By SFritsche in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 13, 2010, 9:39 PM
  3. Combobox trigger - click set empty text
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Aug 09, 2009, 3:48 PM
  4. Replies: 1
    Last Post: Jul 30, 2009, 6:33 AM
  5. Replies: 0
    Last Post: Jun 26, 2009, 11:32 AM

Posting Permissions