title: Setting DisplayMemberPath of ComboBox in code
body: <p>In my WPF program I have:</p>
  
  <pre><code>        string queryString = "Select AccountID, ProjectName from Foo where IsEnabled = 1";
          SqlDataAdapter adapter = new SqlDataAdapter(queryString, sConn1);
          DataSet dsAccounts = new DataSet();
          adapter.Fill(dsAccounts, "Accounts");
  
          cbAccount.ItemsSource = dsAccounts.Tables["Accounts"].AsEnumerable();
          cbAccount.DisplayMemberPath = "ProjectName";
  </code></pre>
  
  <p>When my program runs and I dropdown the ComboBox all the rows are there but they display as blanks. When I click on a row, my SelectionChanged event handler properly identifies the selected row and picks up the proper values.</p>
  
  <p>I believe my problem is with the DisplayMemberPath.</p>
  
  <p>What am I doing wrong?</p>