G
Guest
When I add checkboxes dynamically, I can set several attributes(id,
eventhandlers specific to checkboxes....) in code.
I decided to use the checkboxlist to generate several checkboxes dynamically
instead of looping and writing a lot of code
1st question :How can I give each checkbox an identity from the datasource
and an eventhandler for one of a checkbox's events in code.
for example CheckBoxList doesn't have "CheckedChanged" event whereas Ineed
to specify it for each checkbox
what I need todois something like that
Dim obj As CheckBoxList = DirectCast(rdoControl, CheckBoxList)
obj.ID = extract_DataView.Table.Columns("SEPO_Option_Item_ID").ToString
obj.DataTextField =
extract_DataView.Table.Columns("SEOI_Description").ToString
obj.ToolTip =
extract_DataView.Table.Columns("SEOI_Option_Code").ToString
AddHandler MY CHILDRENS, delegates(EventHandlerName)
obj.RepeatColumns = 1
Any doc or examples somewhere
thanks
eventhandlers specific to checkboxes....) in code.
I decided to use the checkboxlist to generate several checkboxes dynamically
instead of looping and writing a lot of code
1st question :How can I give each checkbox an identity from the datasource
and an eventhandler for one of a checkbox's events in code.
for example CheckBoxList doesn't have "CheckedChanged" event whereas Ineed
to specify it for each checkbox
what I need todois something like that
Dim obj As CheckBoxList = DirectCast(rdoControl, CheckBoxList)
obj.ID = extract_DataView.Table.Columns("SEPO_Option_Item_ID").ToString
obj.DataTextField =
extract_DataView.Table.Columns("SEOI_Description").ToString
obj.ToolTip =
extract_DataView.Table.Columns("SEOI_Option_Code").ToString
AddHandler MY CHILDRENS, delegates(EventHandlerName)
obj.RepeatColumns = 1
Any doc or examples somewhere
thanks