网格视图中的Asendind和递减 [英] Asendind and decending in Grid view

查看:76
本文介绍了网格视图中的Asendind和递减的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想通过单击标题列在网格中显示升序和降序..

给我发送代码


i want to show the ascending and decending order in a grid by click the header column..

send me the code

推荐答案

您有一个名为AllowSorting="true"的gridviw属性.然后,您必须在column(BoundField)中使用SortExpression="columnname".检查以下链接.

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

http://asp-net-example.blogspot. com/2008/12/aspnet-gridview-sorting-example-how-to.html [
You have a property called AllowSorting="true" for gridviw. Then you have to use SortExpression="columnname" in columns(BoundField). Check the below links.

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

http://asp-net-example.blogspot.com/2008/12/aspnet-gridview-sorting-example-how-to.html[^]


您将需要进行网格排序
通过以下链接


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

使用上下图标进行分页的Gridview排序 [ http://asp-net-example.blogspot. com/2008/12/aspnet-gridview-sorting-example-how-to.html [
You will need to perform grid sorting
Go through following links


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

Gridview Sorting with Up and Down Icons, Paging[^]

http://asp-net-example.blogspot.com/2008/12/aspnet-gridview-sorting-example-how-to.html[^]


选中此

http://zc0000.wordpress.com/2007/10/09 /customize-gridviews-header-for-sorting-function/ [ http://weblogs.asp.net/rajbk/archive/2006/08/04/Clickable-GridView-Headers.aspx [ ^ ]

http://www.4guysfromrolla.com/articles/012308-1.aspx [ ^ ]
Check this

http://zc0000.wordpress.com/2007/10/09/customize-gridviews-header-for-sorting-function/[^]

http://weblogs.asp.net/rajbk/archive/2006/08/04/Clickable-GridView-Headers.aspx[^]

http://www.4guysfromrolla.com/articles/012308-1.aspx[^]


这篇关于网格视图中的Asendind和递减的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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