Wrox Programmer Forums
|
BOOK: Beginning ASP.NET Databases Also see the forum ASP Databases for more general discussions of ASP database issues not directly related to these books.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET Databases 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 April 2nd, 2004, 12:26 AM
Registered User
 
Join Date: Mar 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Formatting Grid from SQL

Hello all,
I am trying to format my grid with user friendly values, but I don't quite know where to do this from.

The two values I am trying to format at the moment are date, and numbers. The date I would like in DD-MMM-YYYY format, and the numbers I would like in #,##0 format.

Do you
1) Format the SQL results
2) Format the ASP Grid

The second part of my question is how do you do this (either way).
I can format the date using the SQL Convert function.
CONVERT(char(12), SaleDate, 3) as SaleDate





Similar Threads
Thread Thread Starter Forum Replies Last Post
sql datasource with grid view MunishBhatia ASP.NET 2.0 Professional 2 December 13th, 2007 01:13 AM
Number formatting in SQL 2000 mas7004 SQL Server 2000 3 December 11th, 2007 01:16 PM
Formatting the date field in Data Grid abinashpatra ASP.NET 1.0 and 1.1 Basics 2 April 21st, 2005 04:01 AM
Formatting sql query rows as columns with stack sastian PHP Databases 0 March 25th, 2005 04:51 AM
formatting a text field in sql server ttbhandari SQL Server DTS 1 October 2nd, 2004 01:06 AM





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