title: Updating a databound ComboBox
body: <p>I am having virtually the same problem as this: </p>
  
  <p><a href="https://stackoverflow.com/questions/433281/c-update-combobox-bound-to-generic-list">C# Update combobox bound to generic list</a></p>
  
  <p>However, I am trying to change the displayed strings; not add, remove, or sort. I have tried the BindingList solution provided in the referenced question, but it has not helped.
  I can see the combobox's DataSource property is correctly updated as I edit the items, but the contents displayed in the combobox are not those in the DataSource property.</p>
  
  <p>my code looks as follows:</p>
  
  <pre><code>mSearchComboData = new List&lt;SearchData&gt;();
  mSearchComboData.Add(new SearchData("", StringTable.PatientID));
  mSearchComboData.Add(new SearchData("", StringTable.LastName));
  mSearchComboData.Add(new SearchData("", StringTable.LastPhysician));
  mSearchComboData.Add(new SearchData("", StringTable.LastExamDate));
  
  mBindingList = new BindingList&lt;SearchData&gt;(mSearchComboData);
  
  SearchComboBox.Items.Clear();
  SearchComboBox.DataSource = mBindingList;
  SearchComboBox.ValueMember = "Value";
  SearchComboBox.DisplayMember = "Display";
  
  ...
  </code></pre>
  
  <p>When I try to update the content I do the following:</p>
  
  <pre><code>int idx = SearchComboBox.SelectedIndex;
  mBindingList[idx].Display = value;
  SearchComboBox.Refresh();
  </code></pre>
  
  <p>EDIT::</p>
  
  <p>RefreshItems seems to be a private method. I just get the error message:</p>
  
  <p>"'System.Windows.Forms.ListControl.RefreshItems()' is inaccessible due to its protection level"</p>
  
  <p>ResetBindings has no effect.</p>