Click here to Skip to main content
15,916,693 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to copy Dropdownlist datasource to datatable. How to do it? please help me.

Thanks in advance.
Posted

1 solution

Hello, try this

C#
DataTable dt = (DataTable)DropDownList1.DataSource;


Regards
Sebastian
 
Share this answer
 
v2
Comments
Sandeep Mewara 10-May-12 5:53am    
5!
Sebastian T Xavier 10-May-12 7:27am    
Thank you sandeep :)
devausha 10-May-12 5:59am    
Thank U So much
Sebastian T Xavier 10-May-12 6:01am    
welcome :)

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