Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > Visual Studio 2005
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 21st, 2006, 01:19 PM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default sorting problem with a date field in gridview

 am using a grid view which has a column containing dates in ASP.net 2.0. The data is being pulled from a SQL database by which the datasource is connected through OLEDB. The problem that I am running into is that when I click on the date header to sort the field in the gridview, the dates are sorted as text, i.e. 1/2/2006 shows up before 10/2/2005. Is there a way that I can explicitly define this column as a date type in ASP.net so that it sorts correctly? And in MySQL the column is defined as a date type.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting and record Selection problem in GridView Dmitriy ASP.NET 3.5 Professionals 0 September 24th, 2008 03:18 PM
date field problem in access asp varia_mahesh Classic ASP Basics 1 June 6th, 2007 07:02 PM
date field problem access asp varia_mahesh Access ASP 0 June 6th, 2007 08:33 AM
gridview - ampersand in data field problem tothemaxm ASP.NET 2.0 Professional 1 April 28th, 2006 02:05 PM
Sorting GridView DARSIN ASP.NET 2.0 Basics 0 December 14th, 2004 09:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.