I have a DropDownList in the EditItemTemplate of a GridView. Im using LLBLGENPRO Datasources for both the GridView and The DropDownList. The EntityCollection for the GridView Datsource has related fields mapped (Project - ProjectPreset m:1). It one way binds fine but when editing the record the change from the DropDownList is not updated in the database. I cannot update the related entity. Below is my code. How should I be doing this?
<EditItemTemplate>
<asp:DropDownList ID="ProgressDropDown" runat="server" DataSourceID="LLBLDS_ProgressPresets" DataTextField="ProgressPresetDescription" DataValueField="ProgressPresetID" SelectedValue='<%# Bind("ProgressPresetID") %>'>
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="ProgressLabel" runat="server" Text='<%# Eval("ProgressPresetDescription") %>'></asp:Label>
</ItemTemplate>
<llblgenpro:LLBLGenProDataSource ID="LLBLGENDS_OpenProjectList" runat="server" DataContainerType="EntityCollection"
EntityCollectionTypeName="BullingtonBuildersObjects.CollectionClasses.ProjectCollection, BullingtonBuildersObjects">
<SelectParameters>
<asp:Parameter DefaultValue="open" Name="Status" />
</SelectParameters>
</llblgenpro:LLBLGenProDataSource>
<llblgenpro:LLBLGenProDataSource ID="LLBLDS_ProgressPresets" runat="server" DataContainerType="EntityCollection"
EntityCollectionTypeName="BullingtonBuildersObjects.CollectionClasses.ProgressPresetCollection, BullingtonBuildersObjects">
</llblgenpro:LLBLGenProDataSource>