GridView + DataBinding of nested classes

  • Thread starter Thread starter SMichal
  • Start date Start date
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 ?
 
Back
Top