D
David Jackson
Hello,
I have an unbound DataGridView of which one of the columns is a ComboBox
colum containing category data, plus an additional option called <new> So
when the ComboBox is dropped down it looks like this
<new>
First
Second
Third
Fourth
I would like to add an event to this ComboBox so that I can detect if the
user chooses <new> or not. I have tried various combinations of the very
rich DataGridView event model e.g. the CellValueChanged event. The problem
with this is that it doesn't fire when the ComboBox itself changes - it only
fires when the contents of the underlying cell changes i.e. when the user
moves to another cell.
I found this via Google
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=54048&SiteID=1
but I can't get it to work. It seems to have been written using a beta
version of .NET2 so maybe things were changed in the released version.
I'm wondering if what I'm trying to achieve is even possible? Is it possible
to grab the ComboBox in a ComboBox column and wire up new events for it?
Thanks in advance.
DJ
I have an unbound DataGridView of which one of the columns is a ComboBox
colum containing category data, plus an additional option called <new> So
when the ComboBox is dropped down it looks like this
<new>
First
Second
Third
Fourth
I would like to add an event to this ComboBox so that I can detect if the
user chooses <new> or not. I have tried various combinations of the very
rich DataGridView event model e.g. the CellValueChanged event. The problem
with this is that it doesn't fire when the ComboBox itself changes - it only
fires when the contents of the underlying cell changes i.e. when the user
moves to another cell.
I found this via Google
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=54048&SiteID=1
but I can't get it to work. It seems to have been written using a beta
version of .NET2 so maybe things were changed in the released version.
I'm wondering if what I'm trying to achieve is even possible? Is it possible
to grab the ComboBox in a ComboBox column and wire up new events for it?
Thanks in advance.
DJ