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. Object Binding Question

Object Binding Question

Scheduled Pinned Locked Moved C#
businessquestioncsharpdatabasewpf
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.
  • A Offline
    A Offline
    akyriako78
    wrote on last edited by
    #1

    Can we achieve an child-parent lookup when we establish an object binding ? Sorry i cant express it well so i'll give an example: Let's suppose we have class Student and a class Classroom related in a way as follows. class Classroom { public string Name {get;set;} public string Code {get;set;} } We load from a db and get an Classroom[] { a , b , c , d}. class Student { public string Name {get;set;} public Classroom ClassRoom {get;set;} } We load students from a db. Is this possible to bind Student.ClassRoom to a combobox which simultaneously be a lookup table deriving Classroom values from Classroom[] object i've already loaded and submit changes to the current student object of the binding source ? I have done it with datasets so i assume it can be done with objects but project requirements exclude typed dataset and it's obligatory to use business objects. It's not a homework , i'm not asking the code just a guideline or a decent data binding articles for .net 2.0 . Thanx in advance.

    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