470,831 Members | 1,918 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,831 developers. It's quick & easy.

Error : Use custom IListSource as a datasource for BindingSource

Hi, I create custom entity objects, a custom collections for the entity objects and a custom object that acts like a collection of the custom entity collections which I called EntitySet Object. The EntitySet is used to bind the entity collections to windows form bindingsource in design time. After 2 weeks of bloody coding and reading really "Helpfull" msdn docs, thanks to http://www.freeweb.hu/noiseehc/ finally I've managed to create the entityset and bind it to a bindingsource in design time. But Unfortunately, the bindingsource list shows 0 count, while the entitycollection itself shows 1 count. Please kindly help what's wrong with the code.

public TypedEntitySet()
{
entityCollectionsDescriptor = new EntityCollectionTypeDescriptorCollection();
entityCollectionsDescriptor.Add(this, "City", typeof(EntityCity));
entityCollectionsDescriptor.Add(this, "Shipment", typeof(EntityShipment));
}

public System.Collections.IList GetList()
{
return this.entityCollectionsDescriptor;
}

The EntityCollection itself simple a custom object thich inherits from BindingList<T>.

Thanks.
Apr 28 '07 #1
0 1033

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by wackyphill | last post: by
11 posts views Thread by Daniel Billingsley | last post: by
3 posts views Thread by Dan | last post: by
1 post views Thread by =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post: by
2 posts views Thread by =?Utf-8?B?UGFvbG8=?= | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.