473,411 Members | 2,085 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,411 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 1640
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.