Binding a DropDownList and adding a value to first element
Posted on 2003-10-28
I would like to retrieve a DataSet from the database (already done) and then add one row (name/value pair) to the start of it (index=0).
1. Retrieve a DataSet from the database - all cool, have code for this!
The DataSet will contain name/value pairs used in a DropDown List
2. Insert a name/value pair at begging of DataSet.
The reason for this is that I want to bind data to the list control and then include a "None" option at the beginning of the list for when clients do not need to choose anything from the list.