开发者

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

开发者 https://www.devze.com 2023-01-14 20:05 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消