如何排序数据视图中的一个DateTime列? [英] How to sort a DateTime-column in DataView?
本文介绍了如何排序数据视图中的一个DateTime列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些列的GridView和我需要排序日期列在GridView。但我不能正确地排序它。这是code,我使用:
I have a gridview with some columns and I need to sort the gridview by a date-column. But I fail in sorting it correctly. This is the code that I use:
dt.DefaultView.Sort = "Meldingsdatum asc";
gvOutlookMeldingen.DataSource = dt;
gvOutlookMeldingen.DataBind();
有人可以帮助我,请。
Can someone help me, please.
推荐答案
的http:// forums.asp.net/p/1267353/2393006.aspx
这篇关于如何排序数据视图中的一个DateTime列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文