I am working on a Saloon Application in which I am generation the appointment system, I have a column in a Gridview in which a ComboboxColumn is embeded that contains services that saloon provides. I have to take some action on selection of the combobox value. I am unabel to do so, I have trapped the SelectedIndexChanged event but unable to use it in proper manner, here is the code:
Private Sub DataGridView1_EditingControlShowing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewEditingControlSho wingEventArgs) Handles DataGridView1.EditingControlShowing
Dim ServiceCombo As ComboBox = TryCast(Me.DataGridView1.EditingControl, ComboBox)
If ServiceCombo IsNot Nothing Then
AddHandler ServiceCombo.SelectedIndexChanged, AddressOf ComboBox_SelectedIndexChanged
End If
End Sub
Private Sub ComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
MessageBox.Show("OK")
End Sub
Please help me ragarding.......