I have a DropDownList inside the EditTemplateItem (if the user clicks edit) in a GridView. The DropDownList receives all available rows from the database.
My problem is, if the user clicks Edit in the GridView to edit a row and opens the DropDownList Box the original item is not selected but the first one. That means the items are sorted.
Have someone an idea how I can solve this issue that the right item / the original is selected if I change to edit mode of the grid view?
The only idear that I have is to write some lines in the code behind for the updating event and selected the suitable index manually but I think there must be an easier way.
View Complete Post