基于日期列的Gridview数据排序 [英] Gridview data sorting based on date column

查看:85
本文介绍了基于日期列的Gridview数据排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个gridview,从数据库绑定数据,并根据日期列对数据进行排序。但输出并没有像我预期的那样......





 dvMails.Sort =   Sortcolumnname ASC; 
gvInbox.DataSource = dvMails;
gvInbox.DataBind();

解决方案

参考此链接



在GridView Web服务器控件中对数据进行排序 [ ^ ]



ASP.NET GridView排序示例 - 如何对GridView数据进行排序 [ ^ ]



ASP.NET - 将GridView绑定到自定义数据对象 [ ^ ]



看一下GridView在ASP.NET 4.0中的新排序样式 [ ^ ]



问候......:笑:


hi
访问此链接

http://forums.asp.net/ t / 1180174.aspx / 1 [ ^

Hi,

I have a gridview, binding data from database, and sorting the data based on date column. But the output is not coming as i expected...


dvMails.Sort = "Sortcolumnname ASC";
                   gvInbox.DataSource = dvMails;
                   gvInbox.DataBind();

解决方案

Refer to this links

Sorting Data in a GridView Web Server Control[^]

ASP.NET GridView Sorting example - How to sort GridView Data[^]

ASP.NET - Sorting a GridView Bound to a Custom Data Object[^]

A Look at the GridView's New Sorting Styles in ASP.NET 4.0[^]

Regards.. :laugh:


hi visit this link
http://forums.asp.net/t/1180174.aspx/1[^]


这篇关于基于日期列的Gridview数据排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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