I had my bind working fine from my GridView to an object with a property UserID which returned an Int32.
I decided to modify my object to store a User instead of UserID and so i would refer to the UserID as a property of this complex property.
However, DataKeyNames doesn't seem to support the syntax change from "UserID" to "User.UserID" - bind also doesn't [seem to].
"A call to Bind was not well formatted"
I also seem to have issues accessing the new properties with the same code that works fine when it is a direct property:
gv.SelectedRow.Cells[0].Text
However, Eval() does just great.
For the moment i will just put a proxy property called UserID which actually returns the UserID on the local User property, but it would be nice to just extend my declarative code.
Is it possible? And if so, anyone know what i am missing.
If not, why not?