如何在gridview的单元格文本末尾添加图像 [英] how to add image at the end of cell text in gridview

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

问题描述

像下面的


我已使用以下代码添加图像,但是添加图像时测试已消失

like the below


i have used the below code to add image but the test is gone when adding the image

image b = new image();
b.Text = "tooltipe";
b.CssClass = "tooltip";
.Rows[rowIndex].Cells[0].Controls

推荐答案

您好可以使用CSS并设置background-image,您还可以使用Javascript/jquery在文本框中设置背景图像的LEFT 位置.
Hi, You can use CSS and set a background-image, u can also use Javascript/jquery to set LEFT position of background image inside textbox.


这篇关于如何在gridview的单元格文本末尾添加图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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