Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Creating a User Control thats Supports Lookup Databinding

Creating a User Control thats Supports Lookup Databinding

Scheduled Pinned Locked Moved C#
tutorialdesignhelpquestioncsharp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dotman1
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups