Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Sorting by Dates in Gridview Asp.NET(VB)

Posted on 2013-01-29
4
Medium Priority
?
201 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 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

722 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