【发布时间】:2015-10-03 22:53:33
【问题描述】:
我的表中有 3 列,分别是:
ID、姓名、父部门
ParentDepartment 的值是列 ID 中的一个 ID。例如:
ID : 1,2,3
Name : Finance, Product and Services, IT Support
ParentDepartment : 1, 2, 2
这意味着 ID 1 具有父部门“财务”,ID 2 和 3 具有父部门“产品和服务”。
我的问题是如何在WebGrid 列中显示基于 ParentDepartment 的部门名称?所以结果将是:
ID : 1, 2, 3
Name : Finance, Product and Services, IT Support
ParentDepartment : Finance, Product and Services, Product and Services
请你帮忙。
【问题讨论】:
标签: asp.net-mvc-4 webgrid