Link to home
Start Free TrialLog in
Avatar of jknj72
jknj72

asked on

Sorting by Dates in Gridview Asp.NET(VB)

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
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jknj72
jknj72

ASKER

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
Avatar of jknj72

ASKER

or just to be fair I will give 1/2 points .... Thanks again
Avatar of jknj72

ASKER

thanks again