0

Could anyone tell me how to populate a listbox in wp7 with data from a table on SQL Azure through a WCF Service.

I have done loads of work on the service, just that I cant seem to find an example that will populate a listbox with data.

Basically I need this listbox to contain 2 of the 10 fields from the database, and I then need the ID number (so a third non-visable field) saved back to the database based on the user selection.

Can anyone provide an example / link to one??

I have found one or two on here and other websites, but they dont work for me / dont confirm if my Operation Contract in the service is correct.

Thanks,

1 Answer 1

1

Check out this article. Just expose your SQL Azure table with a WCF Data Service usign OData. This article explains step by step how to do so.

On the other hand, once you get source data set it to ItemsSource listBox property.

Regrads,

1
  • Thanks for the info, Will have a look and try tomorrow and get abck to you
    – schuhmi2
    Apr 18, 2012 at 21:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.