Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Balazs Sarreti
|
Dec 13, 2007 - 2:43 AM
|
Hello,
I want to select a ComboBoxItem by finding the string in the item. The following code works for the standard windows forms combobox but not with the Elegant Ribbon ComboBox:
ComboBox1.SelectedItem = ComboBox1.Items.Item(ComboBox1.FindStringExact("ItemtoFind"))
It always selects the first item. Does FindStringExact work with the Elegant Ribbon ComboBox?
Thank you
Balazs
|
|
Technical Support
|
Dec 13, 2007 - 1:01 PM
|
We are sorry but we failed to reproduce this bug. We added several items to the combo box and used the following code: comboBox1.SelectedItem = comboBox1.Items[comboBox1.FindStringExact("Item 5")]; Item 5 was successfully selected. Would you send us a test project that reproduces the problem? Thank you.
|
|
Balazs Sarreti
|
Dec 15, 2007 - 7:24 AM
|
Thank you for your reply I found the error now....there was a "ComboBox1.SelectedIndex = 0" somewhere in the code. Now it works perfectly!
Best regards, Balazs
|
|