tag:blogger.com,1999:blog-7986679425286454345.post8795968005413637858..comments2024-03-02T10:58:40.895+02:00Comments on Code Arsenal - Programming Tutorials and Code Samples: WCF Service Returns List of Objects to WPF DataGridYuri Bondarenkohttp://www.blogger.com/profile/15738790480296752137noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-7986679425286454345.post-28235682999376637552014-09-25T15:17:14.962+03:002014-09-25T15:17:14.962+03:00hi can u help me with my problem https://stackover...hi can u help me with my problem https://stackoverflow.com/questions/26025762/wcf-service-returns-list-of-objects-in-xamarin-androidAnonymoushttps://www.blogger.com/profile/09768856691625132289noreply@blogger.comtag:blogger.com,1999:blog-7986679425286454345.post-28197522991043783552014-05-12T14:53:33.525+03:002014-05-12T14:53:33.525+03:00Hi,
Thanks for the guide, very helpful, however, ...Hi,<br /><br />Thanks for the guide, very helpful, however, I have a problem in using this approach with my WCF service on a different server.<br /><br />I host the service which sends out the list of objects correctly (I can confirm this by doing a simple foreach on the results of the web service)<br /><br />List companies = client.GetCompanies().ToList();<br />StringBuilder sb = new StringBuilder();<br />foreach (var item in companies)<br />{<br /> sb.Append(item.CompanyID + " - " + item.CompanyName + " - " + item.CompanyUserCount);<br /> sb.Append(Environment.NewLine);<br />}<br />MessageBox.Show(sb.ToString());<br /><br />This throws the list back of:<br /><br />1 - Comp1 - 10<br />2 - Comp2 - 20<br />3 - Comp3 - 30<br />4 - Comp4 - 40<br />5 - Comp5 - 50<br /><br />The problem is when I go to set the itemssource of my datagrid to my 'companies' list.<br /><br />dg_companies.itemssource = companies;<br /><br />When I run the program I get a datagrid that looks like:<br /><br />EXTENSIONDATA | <br />------------------------------------------------------------------------<br />System.Runtime.Serialization.ExtensionDataObject |<br />System.Runtime.Serialization.ExtensionDataObject |<br />System.Runtime.Serialization.ExtensionDataObject |<br />System.Runtime.Serialization.ExtensionDataObject |<br />System.Runtime.Serialization.ExtensionDataObject |<br /><br />Do you have any idea why this may be happening?<br /><br />Many thanksMark Chttp://www.insanesquirrel.co.uknoreply@blogger.comtag:blogger.com,1999:blog-7986679425286454345.post-24872416106237101722014-05-09T17:16:30.062+03:002014-05-09T17:16:30.062+03:00Hi,
I would like to say thanks for your guide, ve...Hi,<br /><br />I would like to say thanks for your guide, very informative, however, I appear to have a problem : (<br /><br />I am hosting the service on a different server and connecting to it with a service reference. Everything in my service works fine and can be accessed by the local application but when following your guide to bind a DataGrid I have hit an issue.<br /><br />I have followed the guide word for work and all appears fine until the point of compiling at which point I receive:<br /><br />Inconsistent accessibility: property ype 'System.Collections.Generic.List' is less accessible than property 'ConnectBackend.ViewModel.companies'<br /><br />Do you know why I am receiving this error when your guide says everything should work. I have also checked everything is definitely set as public.<br /><br />Many thanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7986679425286454345.post-71437575494661684782012-10-12T03:26:45.540+02:002012-10-12T03:26:45.540+02:00Thanks.Thanks.Michael W.https://www.blogger.com/profile/00510512694213419859noreply@blogger.comtag:blogger.com,1999:blog-7986679425286454345.post-23624871873249300352012-10-10T14:48:49.052+02:002012-10-10T14:48:49.052+02:00Hi Michael, here is very elegant solution of what ...Hi Michael, here is very elegant solution of what you looking: http://geekswithblogs.net/kobush/archive/2007/04/08/closeabletabitem.aspxCodeArsenalhttp://www.codearsenal.net/noreply@blogger.comtag:blogger.com,1999:blog-7986679425286454345.post-70613710548161908942012-10-07T02:43:57.208+02:002012-10-07T02:43:57.208+02:00Do you know how to add a close button and function...Do you know how to add a close button and functionality to a TabItem?Michael W.https://www.blogger.com/profile/00510512694213419859noreply@blogger.com