checkbox with header or listbox with header
i am trying to add header to a checkboxlist or header to a listbox but haven't been successful.
what i want is this
cateogry1
chbox1 chbox2 chbox3
cateogry2
...........................................
for list box its
header1
item(smaller font)
item
header2
...........
please if anyone knows how to do this help me. thank you very much
Re: checkbox with header or listbox with header
Not sure if this will help you but I used this for a drop down list. Maybe something similar could be used in your examples.
vb Code:
'Formatting the Drop Down List.
Dim i As Integer
For i = 0 To ddlAction.Items.Count - 1
If ddlAction.Items.Item(i).Value <> 0 Then
ddlAction.Items.Item(i).Attributes.Add("style", "color:gray")
End If
Next
Then I gave all my headers a value of 0. So non headers were formatted with the font color gray. You could use something like this just changing the attribute.
Good luck with it