Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics 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 November 18th, 2003, 07:52 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beginner - Datagrid formatting question


Help please.

I have a simple datagrid bound to a datasource.
One of the bound columns is a datetime field.
eg I simply use this to bind the data

    myGrid.datasource = myDatasource
    myGrid.bind

The grid displays all the database fields fine.
I need to format the displayed datetime field.
It is currently shown as dd:mm:yyyy hh:mm:ss and I need
it shown as dd:mm:yy. I cannot change the field to be
a shortdate format in the Access database as other apps
use the full datetime format - but I only want the date
part. My question is...

How do I use the mind boggling boundcolumn class to set the
formatting on my specific datagrid's datetime column? Or is
there a better way. If any one can point me to a code example
it would be help me greatly.
Cheers.
 
Old November 18th, 2003, 01:15 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Please stick to the same thread.

Peter
------------------------------------------------------
Work smarter, not harder.





Similar Threads
Thread Thread Starter Forum Replies Last Post
beginner C++ question p62 proslambano BOOK: Ivor Horton's Beginning Visual C++ 2005 4 February 7th, 2007 04:23 PM
Beginner Question dkr72 Excel VBA 1 January 18th, 2005 09:37 AM
Beginner question on getting only certain elements EstherMStrom XSLT 5 December 10th, 2004 04:38 PM
beginner question saudyonline General .NET 2 September 21st, 2004 01:56 AM
Stupid Question from a BEGINNER Shappy Access VBA 1 May 11th, 2004 03:32 AM





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