title: Dynamically binding Drop Down List in MVC 4
body: <p>I trying to create a drop down list and bind it to the values fetched from database.
   How can I do this. I have done following till now. I want the value of the items of the dropdown ie c.ID in following code to be bind with the Currency_ID of the CountryVM. </p>
  
  <pre><code> public CountryVM()
      {      
              [DisplayName("Country ID")]
              [Required]
              public string ID { get; set; }
  
              [Required]
              [DisplayName("Description")]
              public string Description { get; set; }
  
  
              [DisplayName("Currency Id")]
              public Nullable&lt;int&gt; Currency_ID { get; set; }
  
          }
  </code></pre>
  
  <p>//Controller</p>
  
  <pre><code>   DAL library = new DAL();
     var items = library.GetAllCurrency(Library.Filter.CURRENCY_SYMBOL);
     IEnumerable&lt;SelectListItem&gt; list = items.Select(c =&gt; new SelectListItem { Text = c.CURRENCY_SYMBOL, Value = c.ID.ToString() });
  
      ViewBag.curr_symbol = list;
      return View();
  </code></pre>
  
  <p>//In View  I am trying to access my DropDown as follows : </p>
  
  <pre><code>     @Html.DropDownListFor(model =&gt; model.Currency_ID,"curr_symbol" )// how to write this.
  </code></pre>