Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Sorting by Dates in Gridview Asp.NET(VB)

Posted on 2013-01-29
4
Medium Priority
?
202 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
  • 3
4 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 1500 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

916 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