如何在不使用绘制事件或任何其他事件的情况下在DataGridview的同一个单元格中插入标签和图像 [英] how to insert label and image in samecell in DataGridview without painting event used or any other

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

问题描述

先生

我目前正在使用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 exact coding please send to me.

Thanks Regards.

推荐答案

是的,您在另一篇文章中得到了答案.不要一遍又一遍地转发相同的问题.

没有人会为此发送代码给您.

要做的唯一方法是创建自己的自定义DataGridViewColumn类.您还必须创建编辑类来进行编辑.这不是一个简单的任务.

您可以找到有关此过程的大量示例和信息
Yes, you got an answer in your other post. Don''t repost the same question over and over.

Nobody is going to send you code for this.

The only way to do wha tyou want is to create your own custom DataGridViewColumn class. You''ll also have to create the editing class to go along with it. This is NOT a simple task.

You can find a bunch of examples and information on this process here[^]


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

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