如何在不使用绘画事件的情况下在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[^]