Solved

Sorting by Dates in Gridview Asp.NET(VB)

Posted on 2013-01-29
4
192 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 500 total points
Comment Utility
Did you try putting the filename in Order By clause? Is field of type Date or varchar?
0
 

Author Comment

by:jknj72
Comment Utility
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
Comment Utility
or just to be fair I will give 1/2 points .... Thanks again
0
 

Author Closing Comment

by:jknj72
Comment Utility
thanks again
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now