2014年7月13日 星期日

[RESOLVED] Need to add (bind) a DropDownList to a DetailsView using EntityDataSource and VS2013


Hi


 


I just want to create something very basic, but have been very difficult for me, mainly because I'm not a code expert: I'm using Entity Data Source and need to to add (bind) a DropDownList to a DetailsView using EntityDataSource and VS2013.


I have a DetailsView I want to use for a Purchasing Form.


 


I need 3 dropDown lists, one to select the Product, the Item, and Other to select the Buyer.


I want to do this basic, in the future I will add a filter, etc. but now I just need this 3 drop downs in the form using EntityDataSource.


I'm new on coding, so I started with WebForms and drag and drop.


I changed some code in the DetailsView, and shows the DropDown but does not bind at all.


PLease your help.


 
















>











Regards


Leonaredo Zucca



If you want bind DropDownList, bind DropDownList Selectedvalue (not text property) to your db field


DataTextField="UserName" DataValueField="Id"
SelectedValue='<%# Bind("IdUsuario") %>'>







Many thanks!, worked perfectly!, take care!...


沒有留言:

張貼留言