Solved

Sorting by Dates in Gridview Asp.NET(VB)

Posted on 2013-01-29
4
199 Views
Last Modified: 2013-01-29
This is an extension from Question ID: 28012439

I have 2 date fields that I am looking to be able to support Sorting
I attempted to create 2 hidden fields and put the dates in strings in the Row Data Bound but I am still having trouble.
I still have to do this in the same format as my last question where I build the SQL and change the Order By dynamically, which works great but how could I incorporate that to sort Dates?

Appreciate any help
0
Comment
Question by:jknj72
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 38832041
Did you try putting the filename in Order By clause? Is field of type Date or varchar?
0
 

Author Comment

by:jknj72
ID: 38832574
I didnt realize that there are dates in these fields but if the To Date is the same as the From date then it would just appear blank so while it was sorting correctly it appeared as if something was wrong. I will give you the points for your assistance.  THANKS
0
 

Author Comment

by:jknj72
ID: 38832576
or just to be fair I will give 1/2 points .... Thanks again
0
 

Author Closing Comment

by:jknj72
ID: 38832587
thanks again
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question