【发布时间】:2010-08-03 18:52:42
【问题描述】:
我的 N 层应用程序中有返回 List<Employee> 的方法。
下面是该方法的示例代码:
public List<Employee> GetAllemployees()
{
return DAL.GetEmployees();
}
我的 aspx 页面中有一个 GridView。如何将 GridView 的数据源设置为GetEmployees(),以便将所有员工都列在 GridView 中?
【问题讨论】: