After I set to false, it sort of works but seem has another complicated issue.
behavier:
the first time the combobox get focus, nothing happens except highlight.
click on it again with the focus on, an exception happened as follow:
System.Threading.ThreadStateException: Current thread must be set to single thread apartment (STA)mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.
at System.Windows.Forms.ComboBox.set_AutoCompleteSource
at System.Windows.Forms.DataGridViewComboBoxCell.InitializeEditingControl
at System.Windows.Forms.DataGridView.InitializeEditingControlValue
click on it again with the focus on, it drops down and I can choose any item I want.
the above sequence happens everytime the combobox loses focus and gains focus.
background about my application:
a large legacy application developed in C, using Runtime library: Multi-threaded Debug DLL (/MDd), I developed a middle piece so C code can call C# form in a DLL, and also C# form can call C functions in the legacy application.
so far in the C#datagridview (using business object), I can use checkbox, icon, textbox, but currentlyhas beenstruggling onthe combobox for a few days
thanks
Belinda