T
tthompson2007
I have a combobox bound to a dataset containing States and their
corresponding ID's. How would I set the combobox selection to the textvalue
retrieved from the database?
In Windows forms I would do something like this, however my understanding is
that FindString is not available in the compact framework:
cboState.SelectedIndex = cboState.FindString(value)
I have read that an alternative is to iterate through the items collection,
however I can't seem to get this to work. Any sample code to accomplish this
would be much appreciated.
corresponding ID's. How would I set the combobox selection to the textvalue
retrieved from the database?
In Windows forms I would do something like this, however my understanding is
that FindString is not available in the compact framework:
cboState.SelectedIndex = cboState.FindString(value)
I have read that an alternative is to iterate through the items collection,
however I can't seem to get this to work. Any sample code to accomplish this
would be much appreciated.