How to place a custom control within a cells of datagridview in window form

后端 未结 1 965
-上瘾入骨i
-上瘾入骨i 2021-01-13 09:37

i\'m developing a window form application.

i\'m in need of placing custom control comprising of two labels within the cells of the datagrid view.

i have crea

相关标签:
1条回答
  • 2021-01-13 09:57

    I think you want to create your own editing control which implements IDataGridViewEditingControl. See the msdn documentation for IDataGridViewEditingControl Interface. There is an example at the bottom.

    After you create your own editing control, you may need to create something like this: How to: Host Controls in Windows Forms DataGridView Cells

    0 讨论(0)
提交回复
热议问题