Formview itemupdating c
The Drop Down List should be configured to look like the ASP. The Data Source ID for the Drop Down List points at Customer IDData Source.
Then i deleted datasource property and used datasource ID property for the dropdownlist. And for the setting selected value issue, i used formviews itemdatabound event. My sample datatables are as follows : teachers table : PKID | name | lastname | department(int) departments table : PKID | department Name I created my dataaccesslayer using dataset designer and in the presentation layer i created two object datasource configured to get data from teachears and departments table respectively.
After you complete the data source wizard the Form View will have controls added to it for the Item Template, Edit Item Template, and Insert Item Template.