Objects and parameters by reference

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tolga Erdogus

    #1

    Objects and parameters by reference

    I am building a thin client winform app which calls data manipulation
    methods of a web service and the resulting dataset is remoted back to the
    client.

    My question is, when I set the datasource and member properties of my data
    bound objects on my client to a local dataset reference, how do I copy the
    remoted dataset in to that dataset reference?

    The reason why I ask is that this way, I can set all the datsources of my
    client's databound object once to the local dataset reference and as I
    remote back a new version of the dataset and copy it in to my local one, the
    grids will just reflect the changes.

    Is there a better way of doing this? Can I pass a dataset by reference to a
    web service have it make changes there and automatically have them reflected
    to my client? (this would almost be a remote live object with a proxy at
    the client)

    Another method is to change the datasources of all the databound objects set
    to the remoted dataset's reference each time I get a new remote dataset.

    Any pointers on how to accomplish what I need to do?

    Thanks


Working...