Quote Originally Posted by samuelk View Post
I still don't understand where you're getting the code from, but to populate the ComboBox, you would do something like this:

vb Code:
  1. Dim i As Integer
  2. For i = 0 To DataGridView1.RowCount - 1
  3.  
  4.      If DataGridView1.Rows(i).Cells("WhateverTheCodeColumnIsNamed").Value.ToString = "TP8" Then
  5.           ComboBox1.Items.Add(DataGridView1.Rows(i).Cells("StoreNumber").Value.ToString)
  6.      End If
  7. Next

And then when a selection is made in the ComboBox you could iterate through the DataGridView again until you find the matching row and then set the value of the two TextBoxes to the value of the corresponding DataGridView cells.

There's probably a better way to do it, but that would work.
Works like a charm! Thanks. And how would I have the StoreNumber refernced in the ComboBox bring the associated City and State with it?