how to host a custom control in custom cell in DataGridView?
I ha开发者_C百科ve a custom control that I had created I need to host it in the cell of DataGridView.
How to: Host Controls in Windows Forms DataGridView Cells
Implement IDataGridViewEditingControl
in your control and create a custom DGV column by extending DataGridViewColumn
and a custom DGV cell by extending DataGridViewCell
.
The linked MSDN article has an excellent example.
精彩评论