cancel
Showing results for 
Search instead for 
Did you mean: 

combo select value

Former Member
0 Kudos

I have a problem with comobox select. I have build a form with 3 comboboxes. I added to the form a button for clear all the controls values in the form. When I am in the find mode nad i want to clear the combobox selected value it does not clear the value. and this is only when I am in find mode.

I have also added the empty value to the combo datasource.

the code is something like this:

........

oCombo.Select(string.Empty, SAPbouiCOM.BoSearchKey.psk_ByValue);

string selectedValue = _cmbCausale.Selected.Value;

......

The problem is that when I am in find mode the selectedValue it is not string.Empty but it is the last selected value from the form.

does any one have any suggestion?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

When you change into the find mode, clear the data source assigned to the combobox, then Look for the value.

Regards,

J.

Former Member
0 Kudos

Well i have done this. My problem is when I am in find mode and i want to clear the como by pressing the clear button.... the clear button call the code listed above.

Former Member
0 Kudos

HI,

Set the datasource value to clear the combobox, then it will work.

Regards

J.

Answers (0)