Hi Ahmad,
A simple method is to check the SelectedIndex property of the ComboBox after you set the SelectedValue. If the value is not included in the list, the SelectedIndex would be -1. You can also traverse the Items or the data source to check if the value is included in the list.
Regards, Aland Li Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread. |