Changing datasource of dropdownlist

J

Julie Barnet

I have a datagrid that includes a dropdownlist.

I have an edit button which allows me to access the dropdownlist as a
label only (I can only get the displayed value).

I need to be able to access the dropdownlist attributes (ie.
datasource). When the user clicks on the edit button, I would like to
limit the list of the dropdownlist to those values that are applicable
to the fields already entered.

Example:
Field A: Canada
Field B: Ontario
Field C: Toronto

I would only like to see field C based on the values entered in Field
A and Field B (only Ontario cities should be available in the list).

This would also have to be done in the selected index changed event of
the dropdownlist. But I should be good with that one.

Thanks in advance
Julie Barnet
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top