This is a migrated thread and some comments may be shown as answers.

[Solved] Entity Framework form templates

0 Answers 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nahuel
Top achievements
Rank 1
Nahuel asked on 04 May 2013, 11:09 PM
I have 2 entities: Passengers and IDTypes, Passenger has a navigation property called IDType (bound to IDType_ID)

How can i  build a dropdown in the formtemplate? i have one :
<asp:DropDownList ID="dropdownPassengerIDTypes" runat="server" DataSourceID="dsIDTypes" DataTextField="IDTYPE_NAME"
                                DataValueField="ID" SelectedValue='<%# Bind("IDType_ID") %>' AppendDataBoundItems="True">
                                <asp:ListItem Text="Seleccione un Tipo" Value="0"></asp:ListItem>
                            </asp:DropDownList>

BUT IDType_ID does not exists in my Passengers Entity.. can someone help me?

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Nahuel
Top achievements
Rank 1
Share this question
or