To demonstrate data binding for a Drop Down List in a Form View switch the Form View to the Edit Item Template.
You can use the Smart tags menu or switch to the ASP.
Paul Kimmel is the VB Today columnist for has written several books on object-oriented programming and . Paul Kimmel is a Technical Evangelist for Developer Express, Inc, and you can ask him about Developer Express at [email protected] read his DX blog at
I just finished a small commitment with the Lansing Give Camp, which was sponsored in part by Developer Express and am looking forward to seeing some of you at Tech Ed in Los Angeles.
The Edit Item Template will contain Text Box controls by default.
The Text Box controls provide basic data entry support for editing a record.
I have prepared a sample project that I can upload if you tell me how.
And a big strategy is to use whatever approach works in an application even if it means mixing stylescustom versus data sources and binding. They key is to get done quickly with dependable and maintainable results. You may contact him for technology questions at [email protected] and Eval perform approximately the same function, reading data from a data source. Selected Value End Sub Use Bind for the Drop Down List Selected Value and the code in Listing 1 is not needed. Modify the Customer ID by picking a Customer from the Drop Down List and click the Update button provided by the Form View designer.The difference is that Bind is a two-way bind (read and write) and Eval is a one way bind (read-only) from the Data Source. Item Updating Dim control As Drop Down List = Form View1. If you use Eval then remember that the Drop Down List is in a template of the Form View, so you have to get the actual Drop Down List by calling Find Control and setting the updated value to the e. The running form is shown in Figure 3, and the ASP.The edit template contains a Drop Down List and the population, binding, and updating is all handled declaratively. 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.It is the Edit Item Template you are interested in.