title: How to return distinct data to DropDownListFor?
body: <p>I apply .Net MVC structure with C#. In the controller, I want to <strong>distinct</strong> specific column (IndustryName), and return the result to <strong>Html.DropDownListFor</strong> in view. But I get a running time error at view: </p>
  
  <blockquote>
    <p>System.Web.HttpException: DataBinding: 'System.String' not include
    'IndustryName' property.</p>
  </blockquote>
  
  <p>Is there any one meet such problem, and how to solve it?
    Thank you very much for your helping.</p>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>public ActionResult Create()
  {
     var industrys = this._pmCustomerService.GetAll().Select (x =&gt; x.IndustryName).Distinct();
     ViewBag.Industrys = new SelectList(industrys, "IndustryName", "IndustryName", null);
     return View(); 
  }
  </code></pre>
  
  <p><strong>View:</strong></p>
  
  <pre><code>@Html.DropDownListFor(model =&gt; model.IndustryName, (SelectList)ViewBag.Industrys)
  </code></pre>