How do I catch SelectionChangeCommitted event of combobox in datag

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a standard combo box in a datagrid (DataGridEnableComboBoxColumn) and
I want to catch the SelectionChangeCommitted event.

Does anyone know how to do this?
 
More Info:

In my datagridcomboboxcolumn class I have the following:

Public Delegate Sub ComboValueChanged(ByVal changingRow As Integer, ByVal
newValue As Object)

Public Event CheckComboValueChanged As ComboValueChanged


When I create my datagridcolumnstyle I have added the following handler:

AddHandler tccolumn.CheckComboValueChanged, New
DataGridEnableComboBoxColumn.ComboValueChanged(AddressOf
myProjDet.JobStatusChanged)


And myProjDet.JobStatusChanged looks like this:

Public Sub JobStatusChanged(ByVal changingRow As Integer, ByVal newValue As
Object)

End Sub



HOWEVER, putting a debug breakpoint on this sub proves that even though I
change the value in the combobox, the code never drops into this
eventhandler.


Can anyone explain this?
Am I doing something obviously wrong?

Any help would be VERY appreciated.
 
Try changing the delegate name to SelectedValueChanged. I think the event
handler has to be named as <propertyname>Changed.

Ron Ford
 
Back
Top