How can I set the selectedvalue property of a SelectList after it was instantiated without a selectedvalue;
SelectList selectList = new SelectList(items, \"I
I usually use this method
public static SelectList SetSelectedValue(SelectList list, string value) { if (value != null) { var selected = list.Where(x => x.Value == value).First(); selected.Selected = true; return list; } return list; }