Problem setting initial value of WebCombo

1 reply. Last post: March 25, 2014 2:49 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
I have a WebCombo where the DataSource is set to a collection of objects.  I have added several properties from each object as a WebComboColumn.  I set DataValueField = "Id" and DataTextField = "Name", both of which are properties on the DataSource object.  I have a page containing a WebCombo where I want to set the currently selected item of the WebCombo to the object that is loaded by the page.  I have attempted to set the Value property to the value of the Id property of the object.  However, I am unable to see a value selected in the WebCombo.  When DataBind on the WebCombo is called, the Value property seems to be cleared and the WebCombo is blank.  I have tried setting the Value at several different times and have had no luck.  Please help.

Also, the code that I currently have has worked fine for years but no longer works after I upgraded to version 6 of WebCombo from version 2.

Thanks.
All times are GMT -5. The time now is 9:56 PM.
Previous Next