P
Peter W Johnson
Hi Guys,
I have a form setup with a Datagrid. The Datagrid has a combobox in one
column. I am trying to find out the value of the combobox after it has been
changed.
I have added a handler for the SelectIndexChanged event to the TableStyles
Class as follows:-
AddHandler ComboTextCol.ColumnComboBox.SelectedIndexChanged, AddressOf
ItemComboBox_SelectedIndexChanged
The event fires the following:-
Private Sub ItemComboBox_SelectedIndexChanged(ByVal sender As Object, ByVal
e As System.EventArgs)
Dim cbo As NoKeyUpCombo = New NoKeyUpCombo
Dim SelectedIndex As Integer = cbo.SelectedValue
MessageBox.Show("Col is " & DataGrid1.CurrentCell.ColumnNumber _
& ", Row is " & DataGrid1.CurrentCell.RowNumber _
& ", Value is " & cbo.Text)
End Sub
Any ideas on what I need to do?
Cheers
Peter.
I have a form setup with a Datagrid. The Datagrid has a combobox in one
column. I am trying to find out the value of the combobox after it has been
changed.
I have added a handler for the SelectIndexChanged event to the TableStyles
Class as follows:-
AddHandler ComboTextCol.ColumnComboBox.SelectedIndexChanged, AddressOf
ItemComboBox_SelectedIndexChanged
The event fires the following:-
Private Sub ItemComboBox_SelectedIndexChanged(ByVal sender As Object, ByVal
e As System.EventArgs)
Dim cbo As NoKeyUpCombo = New NoKeyUpCombo
Dim SelectedIndex As Integer = cbo.SelectedValue
MessageBox.Show("Col is " & DataGrid1.CurrentCell.ColumnNumber _
& ", Row is " & DataGrid1.CurrentCell.RowNumber _
& ", Value is " & cbo.Text)
End Sub
Any ideas on what I need to do?
Cheers
Peter.