PC Review


Reply
Thread Tools Rate Thread

Calculated Columns in a Datagrid

 
 
=?Utf-8?B?U2Vhbg==?=
Guest
Posts: n/a
 
      24th Feb 2004
I have a table I am using to load a DataSet.DataTable to display data on a DataGrid. I have a Column called StartTime that is a DateTime and I have a column called Duration that is an Int32, that contains minutes. I want to create a calculated column that adds the minutes to the StartTime and is called EndTime. Any thought on how to go about doing this?
 
Reply With Quote
 
 
 
 
Steven Stein [MSFT]
Guest
Posts: n/a
 
      1st Mar 2004
Hello-

Add a column to your DataTable and set its Expression property. Check out
this topic:

Creating Expression Columns (.NET Framework Developer's Guide)
http://msdn.microsoft.com/library/en...tingexpression
columns.asp


Hope this helps,
Steve Stein
VB Team
--

This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
| Thread-Topic: Calculated Columns in a Datagrid
| thread-index: AcP7I8x/XpIm1JliSYOGKuOBo35KNQ==
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| From: "=?Utf-8?B?U2Vhbg==?=" <(E-Mail Removed)>
| Subject: Calculated Columns in a Datagrid
| Date: Tue, 24 Feb 2004 14:16:06 -0800
| Lines: 1
| Message-ID: <C69C68D1-CCE1-4353-BC81-(E-Mail Removed)>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.languages.vb
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:184481
| NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| I have a table I am using to load a DataSet.DataTable to display data on
a DataGrid. I have a Column called StartTime that is a DateTime and I have
a column called Duration that is an Int32, that contains minutes. I want to
create a calculated column that adds the minutes to the StartTime and is
called EndTime. Any thought on how to go about doing this?
|

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculated Columns in a DataGrid =?Utf-8?B?U3RldmU=?= Microsoft Dot NET 2 15th Jul 2005 09:50 AM
How to add a Dropdown list to a datagrid at runtime (dynamic) without using template columns in ASP.NET and still have the ability to us the datagrid Update event. Daniel Roth Microsoft Dot NET Framework 0 5th Apr 2005 04:54 AM
Sorting on calculated columns in a datagrid Philip Townsend Microsoft ASP .NET 1 29th Mar 2004 05:28 PM
Re: Calculated columns in a DataGrid Jay B. Harlow [MVP - Outlook] Microsoft VB .NET 1 25th Feb 2004 05:36 PM
Re: Calculated columns in a DataGrid Cor Microsoft VB .NET 0 25th Feb 2004 04:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:43 PM.