Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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!
Reply With Quote
  #2 (permalink)  
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



Reply With Quote
  #3 (permalink)  
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:45 PM.


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