checkboxlist question

T

tim payne

Is it possible to access the datasource of a checkbox list, in the same way
as you can with say a datalist or datagrid? I'm trying to use the
onitemdatabound event to check the datasource to see if a column's value is
set to a certain number and check the checkbox item if this is the case. I
can't seem to get it to work though, is this possible with a checkboxlist?
If so, does anyone have any examples? I've had a good search round the web,
and all the examples I found involved binding the list, and then getting a
second datareader and looping through that to check the checkboxes, which
seems like a bit of overkill.

Any help greatly appreciated,

Tim.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,792
Messages
2,569,639
Members
45,351
Latest member
RoxiePulli

Latest Threads

Top