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,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top