如何对仅包含图像的gridview列进行排序? [英] How can I sort a column of gridview which have image only ?

查看:94
本文介绍了如何对仅包含图像的gridview列进行排序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个gridview名称Gridview1。在它的第4列我只有图像。我想按标题对该列进行排序。我已经使用了tablesorter.js但它没有用。有什么解决方案????



我尝试了什么:



我已经尝试过tablesorter.js进行排序,如果单元格有数字或文本它工作正常但是在图像的情况下它不起作用。请帮助.....

I have a gridview name "Gridview1". On the 4th column of it I have images only .I want to sort this column by its titles . I have used tablesorter.js for it but it is not working. Is there any solution????

What I have tried:

I have tried tablesorter.js for sorting if the cell have number or text it is working fine but in case of image it is not working. please help.....

推荐答案

在图像控件旁边的单元格内设置一些隐藏控件,然后对该元素进行排序。
Set some hidden control inside the cell next to the image control and sort on that element instead.


这篇关于如何对仅包含图像的gridview列进行排序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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