GridView绑定实体类的子实体的字段 表user生成的实体User里包含子实体Role想要绑定RoleName 可以使用如下进行绑定: <%# (((User)Container.DataItem).Role).RoleName %>