nipiv
nipiv

Reputation: 332

how to host a custom control in custom cell in DataGridView?

I have a custom control that I had created I need to host it in the cell of DataGridView.

Upvotes: 1

Views: 644

Answers (1)

Jay Riggs
Jay Riggs

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

Related Questions