title: Using a dictionary in a DataGridView
body: <p>I have a SortedDictionary (of string, string) containing Names and IDs. The Values in the dictionary are the names and the keys are the IDs. These could be reversed if it makes life easier.</p>
  
  <p>What I'm hoping to do is display the names in the drop list of a combo box and, when the user selects a name, the code will be filled in in the second column of the DataGridView.</p>
  
  <p>So far, I've got this:</p>
  
  <pre><code>    bindSrcPDF = New BindingSource(dicSorted, Nothing)
      col = grdAuthors.Columns(0)
      col.DisplayMember = "Value"
      col.DataSource = bindSrcPDF
  
      col = grdAuthors.Columns(1)
      col.DisplayMember = "Key"
      col.DataSource = bindSrcPDF
  </code></pre>
  
  <p>Which shows the names in the droplist of the combo boxes in each row, but I can't figure out how to get the textbox in the second column to display the code that corresponds to the name selected.</p>
  
  <p>Any help would be much appreciated - thanks.</p>