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. Database & SysAdmin
  3. Database
  4. Binding Database to multiple controls

Binding Database to multiple controls

Scheduled Pinned Locked Moved Database
databasewpfwcfsalestutorial
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.
  • T Offline
    T Offline
    Taen_Karth
    wrote on last edited by
    #1

    This was posted in the VB forum as well since I was not sure which it pertained to. Ok, not sure exactly how to word this so here goes. I have a winform in my project that has the following: Controls 1. DropDownList1 - Customer Name 2. TextBox1 - Customer ID 3. DropDownList2 - Site Name DataBase Tables 1. tblCust - Fields(CustName, CustID, Status) 2. tblCustSiteAssoc - Fields(CustId, CustSiteID) 3. tblCustSite - Fields(CustSiteID, CustSiteName, ...) What I am trying to do is this: 1. When the form open have customers names bound to the DropDownList1 control with nothing selected 2. Once I select something in the DropDownList1 control (SelectedIndexChanged) have it update the other two controls with the selected customers' data. I assume I make a DataSet that queries all three tables and I understand how to bind the CustName to the first DropDownList box. What I don't understand is how to use the selected information to get the relevant information for the other two controls. Thanks in advance, Taen Karth Thanks, Taen Karth

    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