限制用于显示图像的GridView.ImageField大小 [英] Restricting GridView.ImageField size for image display

查看:264
本文介绍了限制用于显示图像的GridView.ImageField大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在DB中有大图像,并且GridView控件绑定到DataSet之后,GridView.ImageField列变得非常大.如何限制GridView.ImageField列的最大大小?

I''ve got large images in DB and after GridView control is bound to DataSet the GridView.ImageField column becomes very large. How to restrict the max size of the GridView.ImageField column?

推荐答案

您已设置ImageFiled的宽度和高度.
^ ]

You have set width and height of ImageFiled.
Displaying Image in Gridview from Database[^]


您可能还需要在ControlStyle下设置图像字段列的高度和宽度
You may also need to set the height and width under ControlStyle for the imagefield column


如果可能的话,尝试裁剪该图像并显示它,或者像之前的答案一样提到高度
If possible try to crop that image & show it or like earlier answer mention the height


这篇关于限制用于显示图像的GridView.ImageField大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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