471,356 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

Listbox DisplayMember not being set

I have a listbox which I want to populate with an array that I am returning
from a WebService. My code is as follows

GlossaryItem[] glossaryItems = webService.GetGlossaryItems();

lb1.DataSource = glossaryItems;
lb1.DisplayMember = "Term";

When I run the application the listbox only displays the Type of the
elements, not their values. "Term" is the name of the public property in the
GlossaryItem class. Does the fact that I'm using webservices have anythign
to do with this?
Aug 15 '05 #1
0 1066

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Supa Hoopsa | last post: by
1 post views Thread by Irwin M. Fletcher | last post: by
7 posts views Thread by Dave | last post: by
reply views Thread by frank | last post: by
2 posts views Thread by frank | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.