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. remoting and databinding

remoting and databinding

Scheduled Pinned Locked Moved C#
tutorialsysadminquestion
3 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.
  • N Offline
    N Offline
    nonick2
    wrote on last edited by
    #1

    hello. i am trying to creat a server/clients application and i want the server to hold an object and the clients to recive references to that object. (so far easy) but i also want to do databinding on some of the propertyes so when someone changes a property the other clients will see the change live... i tryed treating the remote object as an ordnary object and creat databinding but it didnt work.. is it even posible? can any one here give me an example of how to do it?

    M 1 Reply Last reply
    0
    • N nonick2

      hello. i am trying to creat a server/clients application and i want the server to hold an object and the clients to recive references to that object. (so far easy) but i also want to do databinding on some of the propertyes so when someone changes a property the other clients will see the change live... i tryed treating the remote object as an ordnary object and creat databinding but it didnt work.. is it even posible? can any one here give me an example of how to do it?

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #2

      As far as I know, this isn't possible to do with remoting. Cool idea, but consider that every client should have a unique instance of the object on the server. So they're all separate entities. I have a very similar issue with a client and we had to write some custom code that updates the server with the value change (we're not using data binding at all), and then it notifies the other clients of value changes. But to do this, we wrap the value with some additional information and the whole mechanism handles not only discrete updates but also updates to things like DataTable objects, without resending the whole DataTable. In essence, you're going to have to create an architecture that supports this functionality. Marc MyXaml Advanced Unit Testing YAPO

      N 1 Reply Last reply
      0
      • M Marc Clifton

        As far as I know, this isn't possible to do with remoting. Cool idea, but consider that every client should have a unique instance of the object on the server. So they're all separate entities. I have a very similar issue with a client and we had to write some custom code that updates the server with the value change (we're not using data binding at all), and then it notifies the other clients of value changes. But to do this, we wrap the value with some additional information and the whole mechanism handles not only discrete updates but also updates to things like DataTable objects, without resending the whole DataTable. In essence, you're going to have to create an architecture that supports this functionality. Marc MyXaml Advanced Unit Testing YAPO

        N Offline
        N Offline
        nonick2
        wrote on last edited by
        #3

        thats bad :( i realy dont want to rewrite the whole functionality of databinding. i will try to ask microsoft using my frind's msdn subscription. maybe it works in VS2005? if so i will probebly move to it. i even tryed to creat a PROPERTYWARPER just like an event warper needed to rase events with remoting.. in this case i could do the subscribing to databinding. but the data was not updating :(

        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