I have a grid that is populated by a SQL Datasource control. When the user edits a row, an edit form template is displayed. Inside this template is a combobox that I populate server-side with values in a dictionary. How do I set the selected value when the edit form template is displayed? Textboxes in the edit form template use the 'Bind' value for their text values, and other comboboxes in the template have a DataSourceID set, so when SelectedValue is set, it's not a problem.
So, I guess my question is multipart.
1. In what event should I be setting the combobox load?
2. For the combobox, how do I set the selected value to be that of the item in the grid?
So, I guess my question is multipart.
1. In what event should I be setting the combobox load?
2. For the combobox, how do I set the selected value to be that of the item in the grid?