Somewhat interesting problems solved

Handling a combox box selection changed event when the comboxbox is in the datagridview control

The problem was that I had a combobox in the datagridview control that when changed I could not figure out how to update other columns in the same row without exiting the column that had the combobox in it. In other words you would chanage the selection in the combo box then have to click out of the field so that the cell change event would fire and you could update the other columns. Ideally the other columns would get updated as soon as you changed the value in the combobox while the focus was still on the combobox.


The answer came from the following source.

http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcomboboxeditingcontrol.aspx

Last edited Jan 16, 2009 at 3:33 PM by bradyguy, version 5

Comments

No comments yet.