[英]ASP.Net Web Forms LoginStatus Multiple LoginURL - suggestions?
[英]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.