Hi,
i am dynamically binding a check box list, and have binded dropdownlist ...but now i need these dropdownlists besides the checkboxes
i need these dropdown lists beside each checkbox which have created dynamically using a checkbox lits...
Following is the code i wrote:
Private Sub chkColumnList_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles chkColumnList.DataBound
Dim cnt2 As Integer = chkColumnList.Items.Count
Dim tblDynamic = New Table()
For i As Integer = 1 To cnt2
Dim tc = New TableCell()
Dim tr = New TableRow()
Dim ddlOrderby = New DropDownList()
ddlOrderby.ID = "chkDynamicCheckBox" & i
For x As Integer = 1 To cnt2
ddlOrderby.Items.Add(x.ToString)
Next
tc.Controls.Add(ddlOrderby)
tr.Cells.Add(tc)
tblDynamic.Rows.Add(tr)
Next
pnlOrderBy.Controls.Add(tblDynamic)
End Sub
...
Go to the complete details ...