help debugging DataGridViewComboBoxColumn not setting value

S

sklett

I have a DataGridView bound to a custom business object. The business
object has 2 attributes that are FKs to a lookup table (think HairColorID,
EyeColorID, etc)

For these 2 columns I have created DataGridViewComboBoxColumn and hooked
them up to BindingSources that populate them with the lookup table's value
(in edit mode)

When editing a row and selecting one of the item from the
DataGridViewComboBoxColumn cell, the value that is selected isn't saved to
the underlying bound business object. I didn't create the business objects,
they are a 3rd party library and I don't have access to the source to set a
breakpoint in the set{} property for the field in question, so I don't even
know if it's trying to save the value.

My question is what techniques (if any) are there to hook into the code
while it's executing and inspect relevant variables/events. In other words,
I'm looking for something like
OnDataGridViewComboBoxColumnSelectedIndexChanged - or something like that.

If anyone has any ideas for me I would really appreciate it.

Thanks,
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top