2
I know in the middle of a GridView
, an immediate item can be read with the tag BoundField
:
<asp:BoundField DataField="MeuItem" HeaderText="Meu item" />
But I get a mistake trying to do that:
<asp:BoundField DataField="MeuItem.SubItem" HeaderText="Meu sub item" />
The error launched is described:
A field or Property with the name 'Meuitem.Subitem' was not found on the Selected data source.
I double-checked if I spelled the name correctly and if I need to check again. But I don’t think that’s the problem. What better means to achieve my goal?
What data source did you put on
GridView
?– Leonel Sanches da Silva
@Gypsy
List<MeuItem>
– André Leria