如何使用winApps在单个datagridView单元中创建两个控件 [英] How to Create the two controls in single datagridView cell using winApps

查看:86
本文介绍了如何使用winApps在单个datagridView单元中创建两个控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

请帮我.....

如何在同一单元格上创建两个控件,例如,图像和链接按钮

在Windows应用程序中使用海关控件(或)用户控件

注意:请勿使用Paint或Cell Paint功能()或Events






问候,

Sathya.

Dear Friends,

Plz Help me .....

How to create the two controls like ,image and link button on same cell

in windows application using customs controls (or) user controls

Notes : Don''t using the paint or cell paint functions() or Events






regards,

Sathya.

推荐答案

创建一个托管所需控件的自定义控件,并将其设置为单元格内容.
MSDN有一个示例:如何:在Windows窗体DataGridView单元中托管控件 [ ^ ]
Create a custom control that hosts the controls you want, and set them as teh cell content.
MSDN has an example: How to: Host Controls in Windows Forms DataGridView Cells[^]


这篇关于如何使用winApps在单个datagridView单元中创建两个控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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