2013-04-29 47 views
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的建議!

回答

0

你必須使用嵌套gridviews來實現......這裏是walkthough