0
我沒有與ASP.NET Web窗體太多的經驗和需要生成有些複雜表。極品用的ASP.NET Web顯示有些複雜表建議窗體
我有以下類:
public class ServiceTable
{
...
public IList<Service> Services { get; set; }
public IList<ServiceJob> ServiceJobs { get; set; }
...
}
public class Service
{
...
public string ServiceName { get; set; }
public IList<ServiceJob> ServiceJobs { get; set; }
...
}
public class ServiceJob
{
...
public string JobName { get; set; }
...
}
我需要在ServiceTable
顯示每個Service
一列,標題應ServiceName
。然後,我需要爲每個ServiceJob
的行ServiceTable
具有與第一列中各行應JobName
和未來的人應該是,如果相應的服務具有ServiceJob
被選中的複選框。
小樣機:
+---------+--------------+--------------+---------------+
| | ServiceName1 | ServiceName2 | ServiceName..n|
+---------+--------------+--------------+---------------+
| JobName | ckbx | ckbx | ckbx |
+---------+--------------+--------------+---------------+
我在想gridview的,但似乎無法弄清楚如何實現這一目標。
我需要使用此表diplay已經輸入的數據,並輸入新數據。
尋找formward的建議!