oh no! another datagrid dropdown question!

  • Thread starter Thread starter Guest
  • Start date Start date
i guess i need to know where to set the selectedindex as well as how.
thanks
kes
 
You set the index like this:

dropdown.SelectedIndex = 0; // or whatever value you want 1,2,3.
 
thanks for answering.
that will not work because the dropdown list is a child control of the
datagrid. I tried it and i gives me a run time error. even afteri manuelly
decoarred it a protected with events....
but thanks! and please let me know if i'm wrong about this!
kes
 
How did you get a hold of the DropDownList? Did you use the FindControl
method?
 

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