C1ComboBox SelectedValue in FormView

Posted by: mwppuser on 10 September 2017, 11:33 am EST

  • Posted 10 September 2017, 11:33 am EST

    I'm having an issue using the C1Combobox with an ASP.NET FormView.


    When switching to Edit mode in the FormView I bind the C1ComboBox to an ObjectDataSource. Then with the original ASP DropdownList I could simply bind the SelectedValue in HTML to the foriegn key value found in the FormView's datasource.


    I have tried different ways in code to accomplish this with the C1Combox by handling the FormView's datasource SELECTED event and then getting the value and applying it to the combobox by finding the value with the C1ComoboBox.FindItemByValue() but this seems very cumbersome to change out all the dropdownlists on my forms. Also I keep getting errors when doing this, it may have to do with timing of events on the form. Is there a better way of doing this?

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels