如何在同一单元格中显示图像和文本... [英] how to display the image and text in the same cell...

查看:84
本文介绍了如何在同一单元格中显示图像和文本...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Windows应用程序的datagridview的同一单元格中显示图像和文本...我希望在图像的顶部显示文本..我想要Windows应用程序的示例c#编码.. .

解决方案

创建一个包含图像和文本以及CellTemplate属性的模板. http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumn.celltemplate.aspx [ ^ ]


i want to display the image and text in the same cell of a datagridview in the windows application...i wan to display the text in the top of the image..i want a sample c# coding for windows application...

解决方案

Create a template that includes the image and text and the CellTemplate property. http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumn.celltemplate.aspx[^]


这篇关于如何在同一单元格中显示图像和文本...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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