我在ZK是全新的。我需要動態創建N個組合框,並填充它們。我已經用它的id填充了組合框,但是因爲可能有很多組合框,我不應該知道它們的ID,所以它不能解決我的問題。 我需要添加N combobox,它們的標籤並動態地填充它們。有什麼辦法可以創建這組組合框並動態設置它們嗎?有任何想法嗎? 下面的代碼工程來填充組合已知道它的固定ID。 //In this example I assume I have a
所以我試圖顯示我的表單上的活動列表。 Activity類的樣子: class Activity
{
public int ID { get; set; }
public int IncidentID { get; set; }
public string Description { get; set; }
public int TimeSp
刪除空行我嘗試添加動態網格 Private Sub AddToGrid()
If ViewState("table") IsNot Nothing Then
Dim dtable As DataTable = DirectCast(ViewState("table"), DataTable)
Dim drow As DataRow = Nothing