Click here to Skip to main content
15,902,842 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a radiobuttonlist
-woman
-man
-kids

I want to show data from 3 different tables in a dropdownlist.
such that
when I select the "woman" option
I can show data from a particular table in the datalist.

please anyone answer me. . .

i have tried it using sql-adaptor but somehow it is not working.
Posted
Updated 14-Apr-12 0:42am
v2
Comments
Nelek 14-Apr-12 6:43am    
Spelling corrected.

On the other hand... would you mind to post what you tried? "somehow it is not working" doesn't give so much info about the problem.

1 solution

Without looking at your code I will show you the way I would do it and maybe it will help you;
_dataTable.DefaultView.RowFilter = gender;

where the lists DataSource is set to a DataView and DisplayMember set to the field you wish to display.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900