Hi,
I have a custom combobox (say ComboExt). I need to host this control in datagridview. In MSDN (http://msdn.microsoft.com/en-us/library/7tas5c80.aspx), they are saying, to host custom controls, my own column types with cells should be created. That is, I need to create a custom ComboExtColumn derived from DataGridViewColumn and all properties in DataGridViewComboBoxColumn like DataSource,Items, AutoComplete etc should be implemetend. I feel it is very complicated.
My question is, Could I use DataGridViewComboBoxColumn instead of DataGridViewColumn to host my custom combobox(ComboExt) in DataGridView like as below?
public class ComboExtColumn : DataGridViewComboBoxColumn
{
//Code
}
public class ComboExtCell : DataGridViewComboBoxCell
{
//Code
}
class ComboExtEditingControl : ComboExt, IDataGridViewEditingControl
{
}
Please provide some idea. Sorry for my bad English.