is this possible? adding dropdowns based on a databind to other co

G

Guest

I want to add dropdown boxes based on a databind to a checkboxlist.
I database/databind to a checkboxlist but for each checkbox created I want
to also create a drop down next to it with some predefined values.

so, if my databind creates 5 checkbox items, 5 dropdowns should be created.
 
G

Guest

Why don't you create a datarelation between two seperate datatables in a
dataset, then set a selectionchanged event on the checkboxlist to return a
child table so that when the checkbox is checked it postbacks' returning the
necessary child table and bind the associated child record/table to the
dropdownlist?
 
G

Guest

Can you refer me to a sample or documentation on datarelations. Also, how
would I display the drop downs next to the each check box?
 
G

Guest

Sam,
Thanks for the information. The article describes using checkbox not
checkboxlist. I wanted to use a checkboxlist so I could use a validator for
the whole list. Although they are checkboxes, they are required.
 

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

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top