Do like this in view:
@
{
SelectList CurrencyList = (SelectList)ViewBag.curr_symbol;
}
@Html.DropDownListFor(model => model.Currency_ID,CurrencyList)
and in action:
IEnumerable<SelectListItem> list = items.Select(c => new SelectListItem { Text = c.CURRENCY_SYMBOL, Value = c.ID.ToString() }).ToList();
or:
var list = (from c in items
select new SelectListItem {Text = c.CURRENCY_SYMBOL,
Value = c.ID.ToString() }).ToList();
Update:
As you told in discussion that it is throwing exception on form post so what you need is to fill the List again and put it in ViewBag
in post action as from ViewBag
it is removed.