Formatting a cell in a CheckBoxList

MattB

New member
Joined
Jun 7, 2004
Messages
3
Programming Experience
3-5
I'm trying to make a cell that is part of a CheckBoxList have the Wrap property set to False. I've created a OnDataBinding event for this control, and am having trouble referring to the cells. I want to set them all to not wrap.
Here's what I have in my event currently that does not work. I've also tried using e.Item.cells(i) but that also gives an error at runtime.

Sub cblMods_DataBind(ByVal sender As System.Object, ByVal e As System.EventArgs)
'databound event for cblMods (to format child cells)
Dim cell As TableCell = sender.Items.Controls(0)
cell.Wrap = False
EndSub

Any ideas? Thanks!
 
Top Bottom