DropDownList - Preselected.

  • Thread starter Thread starter Adam Knight
  • Start date Start date
A

Adam Knight

Hi all,

What is the best way to preselect a drop down list item based on info from a
db?

Surely i don't have to write a function iterating through all the list items
and comparing values to find the required index???

Cheers,
Adam
 
set the dropdown's SelectedValue to the value from your table.
 

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