I have a drop-down-list which I’m populating with a SelectList filled with SelectListItem objects, but it’s rendering the class names instead of the correct values. Can anyone see where I’m going wrong?

Here is the code where I render the list:
@Html.DropDownListFor(m => m.SelectedValue, @Model.RangeValues.SelectList)
The model is of type DataParameterValuesModel…
public class DataParameterValuesModel
{
public string Description { get; set;}
public DataRangesModel RangeValues { get; set; }
}
public class DataRangesModel
{
public int? SelectedIdx { get; set; }
public SelectList SelectList { get; set; }
}
And SelectList is populated with SelectListItem objects like this:
List<SelectListItem> items = new List<SelectListItem>();
[...]
items.Add(new SelectListItem()
{
Text = "whatever",
Value = "whatever2"
});
[...]
parms.RangeValues = new DataRangesModel()
{
SelectList = new SelectList(items),
SelectedIdx = null
}

Try to use the 3rd constructor of
SelectListand specify the data value field, and the data text field.Here the MSDN Reference