如何在不使用绘画事件的情况下在DataGridview的samecell中插入标签和图像 [英] how to insert label and image in samecell in DataGridview without painting event used

查看:72
本文介绍了如何在不使用绘画事件的情况下在DataGridview的samecell中插入标签和图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生

我目前正在使用DataGridview.我的要求是在同一单元格的DataGridview中插入两个标签和一个图像.

单元结构看起来像

标签1

图片

标签2

如果您知道,请给我答复.

sir

I am currently using DataGridview. My requirement is insert two labels and one image in DataGridview in same cell.

The cell structure look like

Label1

Image

Label2

If u know Please Give to me reply.

推荐答案

制作一个包含这3个字段的用户控件,并将该用户控件加载到DataGridView中
Make a usercontrol that hold these 3 fields and load the user control in the DataGridView


也请阅读此内容
如何:在Windows窗体DataGridView单元中托管控件 [
Also read this one
How to: Host Controls in Windows Forms DataGridView Cells[^]


这篇关于如何在不使用绘画事件的情况下在DataGridview的samecell中插入标签和图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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