I have a DataGridViewComboBoxColumn on a Winforms DataGridView and I would like to have 2 ComboBox on the same DataGridViewComboBoxCell. I want to be able to choose 2 different values for each cell, having different DataSource for each ComboBox.
Is it possible?
I think it’s possible but not worth to…
Why don’t you just use 2 common combobox column.
If you have to do this, i think you need:
– write a container user control which hosts 2 comboboxes.
– Customize a datagridviewcolumn to host your control.
Reference:
http://msdn.microsoft.com/en-us/library/7tas5c80.aspx
http://www.codeproject.com/Articles/9238/WinForms-Custom-Container-Control