Delete value in combobox


Author
Message
Thomas Holste
Thomas Holste
StrataFrame User (370 reputation)StrataFrame User (370 reputation)StrataFrame User (370 reputation)StrataFrame User (370 reputation)StrataFrame User (370 reputation)StrataFrame User (370 reputation)StrataFrame User (370 reputation)StrataFrame User (370 reputation)StrataFrame User (370 reputation)
Group: StrataFrame Users
Posts: 144, Visits: 618
Hi there,

I am using the combobox bound to a BO and also populated by a BO. Its bindingproperty is set to "selectedvalue" and its dropdownstyle to "dropdownlist". When the form starts, the combobox entry-field is empty. I then select one of the values from the listitems and enter the next field.

But what I can not do is deleting the choosen value and setting the combobox to its initial empty state.

I put some code in the keydown-evnmt to ckear it by setting the selectedvalue back to nothing (where it starts with) but this caused an error. The same with setting the selectedvalue to "".

I also tried setting the bindingproperty to text and then set its text-property to "", but this did not work too.

Can someone tell me what to do?

Best regards

Thomas
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Thomas Holste - 11 Years Ago
Edhy Rijo - 11 Years Ago
Thomas Holste - 11 Years Ago
Edhy Rijo - 11 Years Ago
StrataFrame Team - 11 Years Ago
                         Hi Ben, I tried it and it does not work. This is what I put in the...
Thomas Holste - 11 Years Ago
                             Will it let you set the SelectedIndex to -1?
StrataFrame Team - 11 Years Ago
                                 Hi Ben, that does not work either. The error-message is: *****...
Thomas Holste - 11 Years Ago
                                     You need to alter the binding that SF creates to the combo box and...
StrataFrame Team - 11 Years Ago
                                         Hi Ben, thanks a lot, a first test worked fine and I integrated it in...
Thomas Holste - 11 Years Ago
                                             That's great to hear, Thomas.
StrataFrame Team - 11 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search