hey guys basicaly passing a datatable to populate an asp:checkboxlist & i have the choice of horizontal or vertical. is there any other way i can do this to make several rows of these?
say, 5 across or place in a div or panel with width constraints that will make these wrap as they are populated?
i've pretty much tried everything to no avail.
thx for any help
rik

Private Sub fillCheckboxes(ByVal myDt As DataTable)
        Ck.DataSource = myDt.DefaultView
        Ck.DataValueField = "dbColumn"
        Ck.DataTextField = "display"
        Ck.DataBind()


    End Sub

i think i figure this out myself. i put this in a panel to set the background color. then simply set the repeat columns in the code behind.

Ck.DataSource = myDt.DefaultView
        Ck.DataValueField = "dbColumn"
        Ck.DataTextField = "display"
        Ck.DataBind()
        Ck.RepeatColumns = 6

it defaults to repeat layout table & this will define how wide i want it. works good for me. thx rik

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.