I know that in the middle of GridView
, you can read an immediate item with the tag BoundField
:
<asp:BoundField DataField="MeuItem" HeaderText="Meu item" />
But I get an error trying to do this:
<asp:BoundField DataField="MeuItem.SubItem" HeaderText="Meu sub item" />
The error posted describes:
A field or property with the name 'MyItem.SubItem' was not found on the selected data source.
I've checked twice if I've spelled the name correctly and if I need Czech again. But I do not think that's the problem. What is the best way to achieve my goal?