如何在DataGridview的单元格内插入两个标签 [英] how to insert two labels inside a cell in DataGridview

查看:85
本文介绍了如何在DataGridview的单元格内插入两个标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生

我有一个DataGridview.它包含一个DataGridview Image列.我的要求是
在单元格中插入两个标签一个标签朝上,另一个标签朝下


标签1
图片
标签2


有什么办法可以帮助我.



谢谢

Sir

I have one DataGridview. It contains one DataGridview Image column. My requirement is
Insert two labels inside the cell One label is up and another is down

I.e
Label 1
Image
Label 2


Is there any way please help me.



Thank you

推荐答案

我认为这将有助于您理解:)

http://social.msdn.microsoft.com/论坛/en-US/winformsdatacontrols/thread/38dc504b-5e5f-43ee-bdc7-045adc335ba5 [
I think this will help you to understand it :)

http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/38dc504b-5e5f-43ee-bdc7-045adc335ba5[^]

In addition : If you want to arrange control in some fix layout... you can use tablelayoutpanel or flowlayoutpanel.. its little bit tedious to do something like that... but that is for your fixed requirement.


使用此链接...

http://msdn.microsoft.com/en-us/magazine/cc301573.aspx [ ^ ]
use this link...

http://msdn.microsoft.com/en-us/magazine/cc301573.aspx[^]


这篇关于如何在DataGridview的单元格内插入两个标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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