var items = new SelectList(db.Colors, "Id", "Name").ToList();
var item = new SelectListItem { Value = "Red", Text = "Red", Selected = true };
@Html.DropDownListFor(m => m.SelectedColor, new SelectList(Model.Colors, "Value", "Text"))Package library: System.Web.Mvc.Html In summary, the SelectListItem class is a useful component in the System.Web.Mvc package library for ASP.NET MVC developers to create, bind, and manipulate dropdown lists and multi-select lists in their web applications.