在gridview或其他控件中水平显示图像 [英] show images horizontlly in a gridview r other control

查看:111
本文介绍了在gridview或其他控件中水平显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net(c#)网站上有300张图像.我想在gridview中水平显示所有图像,我知道我可以使用数据列表,但数据列表不支持分页,所以我想使用gridview r其他具有分页

i have 300 images in my asp.net(c#) website.i want to show all that images horizontally in a gridview i know that i can use datalist but datalist does not support paging, thats y i want to use gridview r any other control which has paging

推荐答案

的控件,您需要为此使用datagrid控件,并需要在网格控件中添加一列.然后在新添加的列中使用Image控件,并在datagrid控件的行绑定事件上绑定数据.
you need to use datagrid control for this and need to add a column in grid control. then take a Image control in newly added column and bind data on rowbound event of datagrid control.


您可以将该列的显示属性更改为gridview的水平.
you can Change the property of display of that column as horijontal of the gridview.


这篇关于在gridview或其他控件中水平显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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