簡體   English   中英

需要有關使用ASP.NET Web窗體顯示稍微復雜的表的建議

[英]Need suggestions for displaying somewhat complex table with ASP.NET Web Forms

我對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 然后,我需要為ServiceTable擁有的每個ServiceJob行,每行的第一列應為JobName ,下一行應為復選框,檢查相應的服務是否具有該ServiceJob
小樣機:

+---------+--------------+--------------+---------------+  
|         | ServiceName1 | ServiceName2 | ServiceName..n|  
+---------+--------------+--------------+---------------+  
| JobName | ckbx         | ckbx         | ckbx          |  
+---------+--------------+--------------+---------------+  

我正在考慮gridview,但似乎無法弄清楚如何實現這一點。

我需要使用此表來顯示已經輸入的數據並輸入新數據。

期待提出建議!

你必須使用嵌套的gridviews來達到...這是人行道

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM