Creating a User Control thats Supports Lookup Databinding
-
Hi, Thank you for considering my query. MS VS 2005 .NET installed and using the Microsoft online Help example: 'Walkthrough: Creating a User Control that Supports Lookup Databinding' I have encountered a problem with step 6. using the Data Source Window to set a column to use the new control. Steps 4,5,6 are unclear is this a .NET 2003 example ? and if so how do I continue? During this walkthrough, you will learn how to: 1. Create a new Windows Application. 2. Add a new User Control to your project. 3. Visually design the user control. 4. Implement the LookupBindingProperty attribute. 5. Create a dataset with the Data Source Configuration Wizard. 6. Set the CustomerID column on the Orders table in the Data Sources window to use the new control. Step 6 Setting the CustomerID Column of the Orders Table To Use the LookupBox Control Within the Data Sources window you can set the control to be created prior to dragging items onto your form. 1. To set the CustomerID column to bind to the LookupBox control Open Form1 in the designer. 2. Expand the Customers node in the Data Sources window. 3. Expand the Orders node (the one in the Customers node below the Fax column). 4. Click the drop-down arrow on the Orders node and choose Details from the control list. 5. Click the drop-down arrow on the CustomerID column (in the Orders node) and choose Customize. 6. Select the LookupBox from the list of Associated Controls in the Data UI Customization Options dialog box. 7. Click OK. 8. Click the drop-down arrow on the CustomerID column and choose LookupBox. Regards
dotman1