Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
| Search | Today's Posts | Mark Forums Read
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 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 July 13th, 2004, 12:34 AM
Authorized User
 
Join Date: Jun 2003
Location: Essendon, Victoria, Australia.
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to Calculate dates in datagrid columns

Hi gurus?.

   I would like to know how i can calculate date difference using the Expresion argument in DataColumn constructor.

My Scenario:: I have a datagrid with Three columns. Two columns with DateTime data types, On the third column i would like to compute the hours between the dates using the Expresion argument in the datacolumn.

I tried using DateDiff but it doesn't work.. Pliz help!

LION OF JUDDAH!
__________________
LION OF JUDDAH!
 
Old July 13th, 2004, 02:59 PM
Registered User
 
Join Date: Jul 2004
Location: Los Angeles, CA, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,

this article might be helpful to you:

http://www.c-sharpcorner.com/Code/20...olumnToCal.asp

magnus



 
Old July 15th, 2004, 01:24 AM
Authorized User
 
Join Date: May 2004
Location: , , .
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i think u need to calculate it before u put it into datagrid, try use datatable n datarow





Similar Threads
Thread Thread Starter Forum Replies Last Post
calculate a number between two dates in time t400 SQL Server 2000 8 September 5th, 2006 01:14 PM
Urgent! how to calculate difference between dates Subuana Beginning VB 6 2 March 22nd, 2006 05:34 PM
How to calculate the work days beetwen two dates. andres_pm Javascript 1 October 7th, 2004 06:23 AM
how to calculate difference in dates ashu_gupta75 Excel VBA 3 August 9th, 2004 06:11 AM
calculate time between two dates RMorales2831 Access 1 February 13th, 2004 11:38 PM





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