Hi primpilus,
I'm a bit not clear, could you give us more detail information about this
issue, how you add a combo box into the winform datagrid?
Simply adding the combo box by DataGrid.Controls. Add method may not be a
good choice, since DataGrid class is directly derived from Control class
not ContainerControl class, so it does not support containing child
controls in general way.
If you are trying to customize a datagrid column, you may try deriving from
the DataGridColumnStyle class instead. For how to create a customized the
datagrid column style, you may read the follow article
<Customizing the Windows Forms DataGrid>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwinforms/
html/wnf_CustDataGrid.asp
And there are also many articles and sample codes for customizing datagrid
in
www.codeproject.com, here are some articles related to your issue:
<ComboBox in DataGrid>
http://www.codeproject.com/cs/miscctrl/RenDataGridComboBoxColumn.asp
<DataGrid Zen Novice>
http://www.codeproject.com/cs/miscctrl/DataGridZen.asp?df=100&forumid=31224&
exp=0&select=715228
You may found more information about this topic on CodeProject and other
similiar web sites.
If these suggestions does not help to resolve your problem, please feel
free to reply this thread and let us know more about what effect would you
like to get.
Thanks!
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.