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
Can you tell me how to Get and Set the selectedrow using the datavaluefield value. Not by using the row index.
Do you know where to find javascript reference for webdropdown control?
I ended up using the webdropdown but I'm not sure why I chose that one. I simply select the value in the dropdown off the text.
ddStatus.SelectedValue = row(
"Status")