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 make control reflect changes was maded on his datasource

How to make control reflect changes was maded on his datasource

Scheduled Pinned Locked Moved C#
wpfwcftutorialquestion
2 Posts 2 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

    Hi all. How i can make control reflect changes was maded on his datasource? ctlTextEdit.DataBindings.Add(new Binding("EditValue", _mySourceDataRow, "Field1")); .... void someButton_onClick(...) { _mySourceDataRow.Field1 = "New text"; /* What i should write here for ctlTextEdit control reflect changes (i.e "New text") But without direct invokation of his methods (for examp:this.codeTextEdit.DataBindings[0].ReadValue(); */ } Or exists an method in Form class what make all child controls reread values from ones data sources? THANK.

    L 1 Reply Last reply
    0
    • E ElCachubrey

      Hi all. How i can make control reflect changes was maded on his datasource? ctlTextEdit.DataBindings.Add(new Binding("EditValue", _mySourceDataRow, "Field1")); .... void someButton_onClick(...) { _mySourceDataRow.Field1 = "New text"; /* What i should write here for ctlTextEdit control reflect changes (i.e "New text") But without direct invokation of his methods (for examp:this.codeTextEdit.DataBindings[0].ReadValue(); */ } Or exists an method in Form class what make all child controls reread values from ones data sources? THANK.

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Well you might be interested in the Model-View-Controller Software Design Pattern [^] or the more recent variation Model-View-Presenter. There is a reference (and link) to MVP on the MVC page I linked to.

      led mike

      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