DropDownList

  • Thread starter Thread starter Random
  • Start date Start date
R

Random

I'm creating a DropDownList within a DataGrid column. The page will not
allow me to create my own ID and name for the control. How can I reference
the value on a PostBack if I cannot give it an ID?
 
You need to iterate through the DataGrid.Items collection and then call
FindControl using its design time ID to get the dropdown list.
 

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

Back
Top