473,388 Members | 1,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

How do I catch SelectionChangeCommitted event of combobox in datag

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?

Nov 22 '05 #1
2 1639
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(Add ressOf
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.

Nov 22 '05 #2
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(Add ressOf
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.

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Supa Hoopsa | last post by:
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?
0
by: Shravan | last post by:
Hi, There is a bug in combobox selectionchangecommitted event firing, I took a combobox of style dropdownlist, I dropped down it using mouse and using Alt+Up Arrow key closed the dropdown,...
1
by: mdb | last post by:
I currently catch the SelectedIndexChanged event on a ComboBox to perform some processing when the user changes the selected item. But I also want to know when the user clears the list, but I...
3
by: Cor | last post by:
Hi all, I think I do something wrong, but I don't see what. I have made a sample. The sample needs only a form with a combobox and this code. (I can tell you that it took a long time to see...
1
by: Kalvin | last post by:
I have a combobox, when I use the mouse and click an item, then the SelectionChangeCommitted event fires. However, if I use the arrow keys and move up or down the list to a new item, then this...
3
by: SH | last post by:
Why doesn't the SelectionChangeCommitted event fire when the user chooses an item via the keyboard and then presses the return key or the tab key? I have a combobox with...
5
by: docw | last post by:
SelectionChangeCommitted event fires twice Hi, Please have a look at the following ComboBox behavior. With the code below, if you click in the dropdown list with the mouse to select an item ,...
4
by: senfo | last post by:
Hello All, For some reason, the MouseDoubleClick event for my ComboBox does not appear to be working. I am not subscribed to any other events for this control. I pulled out Spy++ and noticed...
0
by: Silver Oak | last post by:
I have a DataGrid in which one of the columns is TemplateColumn that was created dynamically using iTemplate. I would like to have multi-row editing capability on the DataGrid. I'm trying to...
6
by: tbrown | last post by:
I have a combobox with items like this: {one,two,three}. The selected index is 0, so "one" appears in the combobox text. When the user drops down the list, and selects "two", for example, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.