Reputation: 332
I have a custom control that I had created I need to host it in the cell of DataGridView.
Upvotes: 1
Views: 644
Reputation: 53593
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.
Upvotes: 2