DataField problem

Kethathigeoft

New Member
I was binding collection of objects to DataGrid control, asigning object's properties to DataFields. Everything works fine, untill one of the properties was an object itself with it's own properties. The code:<BR><BR>"<asp:BoundColumn DataField="Profile.ProfileKey"<BR><BR>throws an exception "A field or property with the name 'Profile.ProfileKey' was not found on the selected datasource"<BR><BR>Is there any way to link them?You might try turing your databound columns into template columns. That way you have more control over what shows up where.
 
Back
Top