title: MVC/C#: DropDownListFor not selecting 'selected' item
body: <p>ok, I have a situation where I need to have multiple DDLs of 'BayTypes' that use the same dictionary, which isn't a problem. One DDL for each of 'n' BayOptions. I'm passing a dictionary to my view as 'BayTypes' like this:</p>
  
  <p>(Controller)</p>
  
  <pre><code>var bayTypes = _bayTypeRepository.GetBayTypes().ToList();
  property.BayTypes = bayTypes.ToDictionary(g =&gt; g.Name, g =&gt; g.BayTypeGuid.ToString());
  </code></pre>
  
  <p>(View)</p>
  
  <pre><code>var overrideValue = item.BayTypeOverride ? item.BayTypeOverrideValue.BayTypeGuid.ToString() : string.Empty;
  var result = (from x in Model.BayTypes
                select new SelectListItem()
                    {
                    Text = x.Key,
                    Value = x.Value,
                    Selected = x.Value == overrideValue &lt;-- ***this is working***
                    });
  if (item.BayTypeOverride == true)
      {
       @Html.DropDownListFor(x =&gt; x.BayTypes, result, new { @Name = "BayOptionsToSubmit[" + aCounter + "].BayTypeOverrideValue" })
      }
      else
      {
       @Html.DropDownListFor(x =&gt; x.BayTypes, result, new { @Name = "BayOptionsToSubmit[" + aCounter + "].BayTypeOverrideValue", @style = "display:none;" })
      }
  </code></pre>
  
  <p>The correct item IS getting selected in the 'result' object. If I step through, and watch 'result', I can see that 'Selected = true' for the right one... but it's not selecting in the DDLFor when it renders...</p>
  
  <p>What am I missing?</p>