Really complex databinding: ITypedList with weakly typed collections

I was looking for an example on how to databind collections and found this interesting article.
Good one.
Complex databinding is the kind of databinding where a set (for example an IList or collection) of objects is bound to a multi-element control, like a datagrid control. The datagrid control for example has to display columns, name them, display the correct data in each of these columns, so in other words it has to do a variety of things and it’s essential that the datagrid knows what kind of objects are stored in the collection that’s bound. Everybody who has bound an ArrayList of objects to a datagrid control will know that this won’t be a problem, you’ll see a nice set of columns and each column reflects a property of the object at a given index in the ArrayList. However examining the ArrayList documentation shows that it doesn’t implement ITypedList.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s