Handling DataGridViewComboBoxColumn or BindingSource events

Posted on 2007-07-19
Last Modified: 2013-11-26
I need to know when the user changes the selection in a DataGridViewComboBoxColumn control. The DataGridView control is bound to a DataTable through a BindingSource and TableAdapter.

It seems to me that the BindingSource should be right place to attach an event handler, since it should know when changes are being made.  I can detect a change in the DataGridView's CellValueChanged event but it's awkward and doesn't seem like the best approach.

-- Craig
Question by:CraigYellick
    LVL 34

    Accepted Solution

    I'm not absolutely certain about this, because I don't use BindingSources much, but I think you may find that you're stuck with CellValueChanged (or something else at cell level).  The reason that I say that is that, although with some added bells and whistles, I think the BIndingSource is essentially a wrapper for the CurrencyManager.  And so far as a CurrencyManager is concerned it knows nothing about changes in a datagridview until the ROW is changed.  That is, it is the DataGridView itself that manages cell-by-cell changes on a single row.  It is only when it is clear that editing on that row is complete (usually by the user moving to a different row) that those changes are passed on - as a whole changed row - to the CurrencyManager.

    If that still applies with respect to BindingSources (and my - limited - experience with them suggests that it does) then, unless the change is one that you are prepared to leave undetected until the user moves to another row, you will need to use a cell-level event.

    LVL 11

    Author Comment

    Thanks. I think you are correct about the level of detail that the currency manager knows about the UI events. I keep thinking that by now the Windows Forms UI subsystem would have a more natural mapping to a model-view-controller design.

    -- Craig

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now