GridView + DataBinding of nested classes

S

SMichal

Is there some posibility how to bind a nested classes to GridView ?

class BLZ
{
public string name;
public string text;
}

class Konto
{
public string kontoNr,
public BLZ blz;
}


I've tested it with this combination but it doesnt work

<asp:BoundField DataField="Konto.Blz.Name" HeaderText="Bank" />
<asp:BoundField DataField="Blz.Name" HeaderText="Bank" />


Could somebody help me please ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,999
Latest member
MakersCBDGummiesReview

Latest Threads

Top