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. How to update databinding property

How to update databinding property

Scheduled Pinned Locked Moved C#
wpfwcfhelptutorialannouncement
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.
  • E Offline
    E Offline
    ElCachubrey
    wrote on last edited by
    #1

    Hy all. I have 2 controls binded to one data source this.LookUpEditor1.DataBindings.Add(new System.Windows.Forms.Binding "EditValue",this.my_BindingSource, "ID", true)); this.LookUpEditor1.ValueMember = "ID"; this.LookUpEditor1.DisplayedValue = "Name"; this.LookUpEditor2.DataBindings.Add(new System.Windows.Forms.Binding "EditValue",this.my_BindingSource, "ID", true)); this.LookUpEditor2.ValueMember = "ID"; this.LookUpEditor2.DisplayedValue = "NameSynonym"; DataSource record has 3 fields "ID", "Name", "NameSynonym" problem here: when i change value in first combobox it should changed in second and vice versa. How i can implement this automatically with out using events and explicit property set as what: LookUpEditor1_onValueChanges(...) { LookUpEditor2.EditValue = LookUpEditor1.EditValue; } LookUpEditor2_onValueChanges(...) { LookUpEditor1.EditValue = LookUpEditor2.EditValue; } THANK

    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