Searching for value:
ComboBox1.SelectedIndex=ComboBox1.Items.IndexOf(Co mboBox1.Items.FindByValue(
"value_to_search_for"))
Searching for text:
ComboBox1.SelectedIndex=ComboBox1.Items.IndexOf(Co mboBox1.Items.FindByText("
text_to_search_for"))
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"acko bogicevic" <ac*******@yahoo.com> wrote in message
news:Ox**************@TK2MSFTNGP12.phx.gbl...
I have combobox which is filled from database.
Afterwords i will get a criteria for searching a combo by value.
Hao can i make item in combo to be selected when value in combo match
critiria.
Thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!