It is not required to iterate all rows of the DataTable set the SelectedIndex for the ComboBoxColumn. Instead the DataSource, DisplayMember and ValueMember properties of DataGridViewComboBoxColumn as to be set as shown in the example given here
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcomboboxcolumn.datasource.aspx[
^]
The DataGridView displays the DisplayMember field of the DataSource of ComboBoxColumn corresponding to the ValueMember.
For eg. the DataSource of the ComboBox column is set to a DataTable like
Sl.No. Title
1 Mr
2 Mrs
3 Ms
Now, the DataTable for which DataGridView contains a filed Title with following values
.... 1 ...
.... 3 ...
.... 2 ...
When the DataGridComboBoxColumn is setup with ValueMember as SlNo and DisplayMember as Title then it displays like below
.... Mr ...
.... Ms ...
.... Mrs ...