locked
ComboBox - clear selected item RRS feed

  • Question

  • I have a ComboBox bound to a datasource, which works fine.

    How can I allow the user to 'clear' the selection so that none of the items in the list are selected? I have been unable to find a way to do this.

    Thanks for your help.

    Friday, January 30, 2009 7:59 AM

Answers

  •  Hi gp100mk

    Have you tried to set the ComboBox1.SelectedIndex = -1

    or ComboBox1.SelectedItem = null;

     Hope this can help.

     


     

     

    Friday, January 30, 2009 8:25 AM

All replies

  •  Hi gp100mk

    Have you tried to set the ComboBox1.SelectedIndex = -1

    or ComboBox1.SelectedItem = null;

     Hope this can help.

     


     

     

    Friday, January 30, 2009 8:25 AM
  • Setting it to -1 worked. Thanks

    Friday, January 30, 2009 8:36 AM
  • Setting to -1 worked for me as well. Thank you.
    Tuesday, June 26, 2018 10:43 PM