Databinding and Lists in instances of classes

Posted by Younes on Stack Overflow See other posts from Stack Overflow or by Younes
Published on 2010-05-31T07:54:28Z Indexed on 2010/05/31 9:23 UTC
Read the original article Hit count: 202

Filed under:
|
|
|

I have initialised an instance of a class i have called "Relation" this class also contains a list of "Bills". When i databind this information to a grid, the Relations are showing, tho the Bills ain't. The Relation information is returning in a List and the Bills are inside.

Relation cRelation = new Relation();
List<tRelation> relationList = cRelation.getRelations(); 

a relation has:

relation.Bills <== List<tBills>;

How to make sure that the list inside the list is also getting showed in the Datagrid?

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET