I am trying to select an item based off the DataValueField in a web combo. For some odd reason my intellisense won't work so I can't seem to figure out how to pre-select an item in the webcombo (once it has been databound). Help would be much appreciated.
You would set the value through the SelectedRow property of the WebCombo. For example,
Me.WebCombo1.SelectedRow = Me.WebCombo1.Rows(0)
Be sure that the WebCombo is already databound before setting the SelectedRow, otherwise the row wont exist yet. You can do this by using the DataBound event, or by manually calling WebCombo1.DataBind if WebCombo1.Rows.Count=0
But I need to select by either the text or the value. I don't know which row it is.
Did you get a answer to this simple question?