Update on GridView combobox not updating

affiguffped

New Member
I am trying to bind the DropDownList(DDL) with my entity datasource. The GridView(GV) is bound to a different EntityDataSource than the DDL. The GV's EntityDataSource has a navigation property 'Bag' for the relationship. In edit mode I can pick a different item, but it does not update the database for that record. I did use the include for the navigations in the EntityDataSource. I am sure the wiring is not correct. I have tried searching with no luck so far. Thanks for the help.\[code\]<asp:TemplateField HeaderText="Bag"> <ItemTemplate > <asp:Label ID="lbEditBag" Text='<%#Eval("Bag.Item1") %>' runat="server" /> </ItemTemplate> <EditItemTemplate > <asp:DropDownList runat="server" ID="ddlBags" DataSourceID="edsBags" DataTextField="Amount" DataValueField="BagId" /> </EditItemTemplate></asp:TemplateField>\[/code\]
 
Back
Top