如何放置在窗口形式的细胞的datagridview的自定义控件 [英] How to place a custom control within a cells of datagridview in window form

查看:123
本文介绍了如何放置在窗口形式的细胞的datagridview的自定义控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个窗口窗体应用程序。

i'm developing a window form application.

我在需要把自定义的控制数据网格视图的细胞中包含两个标签。

i'm in need of placing custom control comprising of two labels within the cells of the datagrid view.

我已经创建的自定义controls.Guide我来填充细胞自定义控件

i have created the custom controls.Guide me to populate the cells with the custom control

推荐答案

我想你想创建自己的编辑控制,它实现IDataGridViewEditingControl。请参阅MSDN文档 IDataGridViewEditingControl接口。还有一个例子,底部

I think you want to create your own editing control which implements IDataGridViewEditingControl. See the msdn documentation for IDataGridViewEditingControl Interface. There is an example at the bottom.

您创建您自己的编辑控件后,您可能需要创建是这样的:的如何在Windows主机控制窗体DataGridView细胞

After you create your own editing control, you may need to create something like this: How to: Host Controls in Windows Forms DataGridView Cells

这篇关于如何放置在窗口形式的细胞的datagridview的自定义控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆