PC Review


Reply
Thread Tools Rate Thread

How do I catch SelectionChangeCommitted event of combobox in datag

 
 
=?Utf-8?B?U3VwYSBIb29wc2E=?=
Guest
Posts: n/a
 
      22nd Feb 2005
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?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3VwYSBIb29wc2E=?=
Guest
Posts: n/a
 
      23rd Feb 2005
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.

 
Reply With Quote
 
=?Utf-8?B?Um9uIEZvcmQ=?=
Guest
Posts: n/a
 
      24th Mar 2005
Try changing the delegate name to SelectedValueChanged. I think the event
handler has to be named as <propertyname>Changed.

Ron Ford

"Supa Hoopsa" wrote:

> 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.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ComboBox SelectionChangeCommitted event fires twice docw@globetrotter.net Microsoft VB .NET 5 20th Jul 2006 12:31 PM
SelectionChangeCommitted event SH Microsoft VB .NET 3 1st May 2006 07:03 PM
SelectionChangeCommitted event not raised (combobox) =?Utf-8?B?TWlyemFz?= Microsoft Dot NET Framework Forms 2 1st Aug 2005 08:16 AM
Combobox SelectionChangeCommitted not firing Kalvin Microsoft VB .NET 1 14th Feb 2005 06:51 PM
Bug in SelectionChangeCommitted of Combobox Shravan Microsoft C# .NET 0 31st Oct 2003 01:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:19 AM.