What happened to FindByValue in the compact framework??

  • Thread starter Thread starter adiel_g
  • Start date Start date
A

adiel_g

I use this in the .NET framework to auto-select a value from a
combobox:

cmbBx.SelectedIndex =
cmbBx.Items.IndexOf(cmbBx.Items.FindByValue(mySelection))

Now I am trying to do the same thing in the NET compact framework but
FindByValue is not there??

Is there a way to do the above (in one line of code like shown above)
without using FindByValue?

Thanks Before Hand,
Adiel
 
Ooops! FindByValue is for ASP.NET. The correct code in the compact
framework is:

cmbBx.SelectedValue = mySelection
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top