【发布时间】:2012-06-04 09:21:42
【问题描述】:
动态数据中的外键字段显示下拉列表中子表的下一个字符字段。如何让它显示另一个字段?
假设这些表: 人员(PKPersonnelID、PersonnelName、FKDepartmentID) 部门(PKDepartmentID、描述、部门)
Personnel 表中的 FKDepartmentID 是 Department 表的外键。当我想向 Personnel 插入新记录时,动态数据会显示 FKDepartmentID 的 DropDownList。在此 DropDownList 中,显示了 Description 字段中的值(据我所知,它显示了主键之后的第一个 char 字段)。但我想显示部门字段值。
【问题讨论】:
标签: asp.net asp.net-dynamic-data