Search
Thursday, March 11, 2010 ..:: Blendblog.net ::.. Register  Login
 Bloggers Minimize

 Print   
 Sponsors Minimize

 Print   
 Users Online Minimize
Membership Membership:
Latest New User Latest: maxuser
New Today New Today: 0
New Yesterday New Yesterday: 0
User Count Overall: 18

People Online People Online:
Visitors Visitors: 0
Members Members: 0
Total Total: 0

Online Now Online Now:

 Print   
 Welcome to blendblog.net! Minimize

If you are a developer or designer who is creating cutting edge user interface experiences using Microsoft Expression Blend you've just found a great resource!  The purpose of this site is to share our experience with this brand new product.  As with any new piece of software there is a ton to discover.  Bugs will be revealed and workarounds discovered, hopefully this can be a resource to share in the discovery process!

While this site will focus largely on Expression Blend, it will also encompass WPF, Visual Studio, Silverlight, and other .net 3.5 technologies as they relate to the creation of great software.

Please login using your Microsoft LiveID or register a new account.  Doing so will let you comment on any of the blog entries on the site.  We look forward to helping you in your endeavors as well as you helping others in theirs!  We'd love to have more bloggers on our site...if you are interested please register and contact us!


 Print   
 Trick to returning datarows using WCF Minimize
Location: BlogsSean Cullinan    
Posted by: Sean Cullinan 8/12/2008 1:21 PM

As mentioned in other posts I'm working on using Peer Mesh for real time notification of my clients in my application.  When one client crud's a datarow I want to notify all the other clients of the change.  The easiest way is to send the datarow over the mesh. Not so fast, as I found.  You cannot send a datarow over the mesh because even though it seems like it should be inherently serializable, it is not.

Fortunately there is an easy solution.  Just flatten your datarow using the .itemarray function and send the array over the peermesh.  Mydr.itemarray is all you need.  On the receiving side you can simply declare a new datarow off of an existing table, then set myNewDR.itemarray = Mydr.itemarray, then add the row to your datatable.

That's it, I use this method extensively and it is working very well for me!

Sean

Permalink |  Trackback

Your name:
Title:
Comment:
Add Comment   Cancel 

  
 Search Minimize

 Print   
 Archive Minimize

 Print   
 Blendblog Survey Minimize
Our next client application will be written using:




Submit Survey  View Results

 Print   
Copyright 2010 by blendblog.net   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2010 by DotNetNuke Corporation