How dynamically set DropDownList datasource when in DataGrid?

V

VB Programmer

I have a DataGrid with a dropdownlist in one of the columns (it's a
TemplateColumn). How do I set the ddl's datasource dynamically via code?
I'm having trouble knowing how to reference the ddl.

(I know how to connect to the db, get the data, etc... I know how to set a
normal ddl's datasource. I just need to know how to do this when it's in a
datagrid.)

Thanks!
 

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,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top