or
DataGridView.CurrentCell.ColumnIndex
Then, if you have predefined columns in the DataGridView (for example, the column name will be DataGridView_ComboBoxOne ) and you do not want the hardcode to compare the indices
You can use the following:
Select case DataGridView.CurrentCell.ColumnIndex Case DataGridView_ComboBoxOne.Index Function1() Case DataGridView_ComboBoxTwo.Index Function2() Case Else 'Update of other columns End Select
Fabio source share