开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜