Protected Sub Form View1_Item Updating(By Val sender As Object, _ By Val e As System. The key to binding is the second Data Source for the lookup and understanding the difference between Bind and Eval.Bind reads and writes and Eval only reads from the Data Source.NET view and replace the Customer ID Text Box with a Drop Down List.Next you will need to configure the data source for the Drop Down List and bind the Drop Down List to the source for the list items and the source for the selected value.For me, I have found that enterprise applications and applications of even modest complexity require a lot of business rules and control, and managing everything from scratch supports that from the get go.I do use Bind, Eval, and User Controls heavily though.If you use Eval as shown above then you will have to set the value when it changes in the Form View Ittem Update event (see Listing 1). NET showing all of the elements generated by the designer (or added by you) is provided in Listing 2.If you switch Eval to Bind for the Selected Value then no code-behind is required. It took me a couple of hours to work out the details in a manner I was happy with.
You can use the Smart tags menu or switch to the ASP.
In my previous article Details View Rich Data Control we have learned how to use Details View using SQLData Source data control...
I got many mails about how to use Details View without SQLData Source.
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.