如何在单击列名时对gridview数据进行排序 [英] how to sorting gridview data while clicking on column name

查看:90
本文介绍了如何在单击列名时对gridview数据进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在网格视图上对数据进行排序,同时单击列名但我无法成功。所以请帮我分类数据。提前大于....

i have try to sort the data on grid view while click on column name but i can't succeed. so please help me to sorting the data. thanxs in advance....

推荐答案

http://www.aspdotnet-suresh.com/2011/02/how-to-show-up-and-down-arrows-during.html [ ^ ]


请参阅此处,

http://msdn.microsoft.com/en-us/library/aa479347.aspx [ ^ ]


为此你必须在你的模板中使用属性Sort expression feild。



喜欢这个



sortexpression =yourcolumn name试试和回复
for this you have to use a property "Sort expression" in your tamplate feild .

like this

sortexpression="yourcolumn name" try and response


这篇关于如何在单击列名时对gridview数据进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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