I have added a DropDownListFor to my view.
@Html.DropDownListFor(m => m.SelectedItem_ID,Model.ItemsRepository)
The list is rendering fine with all the SelectItem objects in my list. However in my SelectItemList there is one SelectItem object that has been set to selected = true. I can place a debug point on the line and I see the property set to true but when the html renders the selected item is never default. It appears to be a bug but I'm not sure. I have tried adding the item manually in a string with another comma no dice. Anyone experiencing the same thing. Thanks in advance.
I was not clearing my model state before returning my view. I added the following in my controller before I cleared my view and it fixed my issues.
ModelState.Clear();