Here's a teaser: I know how to create and populate a DropDown, and also how to populate it from a database. But what about the default value? Read on...
I have a table (Table1) with 10 items that I populate a DropDown with. I show an add screen and the user chooses #5.
Now I save DropDown.SelectedItem.Value to my database (Table2). It's the letter "C".
The user brings up my Edit screen.
I repopulate the DropDown with the values from my table1, and then how do I match the value saved in Table2 with one of the values in the Dropdown.
Is there a search function. or do I have to go thru all the items until I find the one I want and then display it in the box.
Did I say it right?
I have a table (Table1) with 10 items that I populate a DropDown with. I show an add screen and the user chooses #5.
Now I save DropDown.SelectedItem.Value to my database (Table2). It's the letter "C".
The user brings up my Edit screen.
I repopulate the DropDown with the values from my table1, and then how do I match the value saved in Table2 with one of the values in the Dropdown.
Is there a search function. or do I have to go thru all the items until I find the one I want and then display it in the box.
Did I say it right?