I have a wcf service that provides a generic list: list lstAccount the presentation level client in my Windfords app to join this service Is using proxy object for
In the proxy, the account class is generated like this:
[System.CodeDom. [Compiler. GeneratedCodeAttribute ("svcutil", "3.0.4506.2152" .xmlTypeAttribute (namespace = "http://schemas.datacontract.org/2004/07/Test.Common")] Public Partial Class Account {} When I drop this lstAccount by setting a dropdown list [data source property] in my presentation layer, instead of changing the name of the account name in the dropdown list, the class name "Account" shows instead. < Pre> this.cblExistingAccounts.DataSource = lstAccount; This.cblExistingAccounts.DisplayMember = "name"; What am I missing here?
Thanks .
Make sure that the attributes of the account class on the service side are decorated with the dotmember attribute.
EDIT: Make sure your proxy is up-to-date, try refreshing it And see if it fixes the problem.
Comments
Post a Comment