ComboBox programmatically take focus away
Posted on 2011-10-17
I am using WIndows Forms. I have a ComboBox control on my form. I want programmatically take away focus from my ComboBox, so it is no longer selected.
In fact, I am using a DataGridView with custom column - when in edit mode, ComboBox appears. My real problem is that when I select row header, edited ComboBox remains selected, but I need to select row and un-select every cell in that row. And idea how to get focus away from ComboBox?
Please note: my custom column is not of type DataGridViewComboBoxColumn - it's completely customized and when in edit mode, ComboBox appears in the cell.