473,399 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

This is what I need to do...

Here is the format of the datagrid/table I need to create. Since the static data is not the same for each row, I'm at a loss as to how to populate that column...?

Static Data Dynamic Read Only Dynamic Read Only Calculated Field
Each 1234 5678 6912
Item in 5678 9101 14779
This 9101 1234 10335
Column 1234 5678 6912
is different 5678 9101 14779

Totals across 22925 30792 53717

Any suggestions, samples in VB would be appreciated. I know how to get the Bound columns for the dynamic data to be read only, but I can't find samples in VB on how to do the calculated field column or the Footer totals...I've found lots in C#, but I need VB....TIA

Coleen

---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/
Nov 20 '05 #1
2 1093
Hi,

Quick example on how to add a calculated column to a dataset.

Dim dc As DataColumn

dc = New DataColumn("Price")

dc.DataType = System.Type.GetType("System.Decimal")

dc.Expression = "Quantity * Each"

dsInvoicesData.Tables(0).Columns.Add(dc)

dc = Nothing

Ken

-------------------

<coleenholley> wrote in message
news:ON**************@TK2MSFTNGP10.phx.gbl...
Here is the format of the datagrid/table I need to create. Since the
static data is not the same for each row, I'm at a loss as to how to
populate that column...?

Static Data Dynamic Read Only Dynamic Read Only Calculated Field
Each 1234 5678
6912
Item in 5678 9101
14779
This 9101 1234
10335
Column 1234 5678
6912
is different 5678 9101
14779

Totals across 22925 30792
53717

Any suggestions, samples in VB would be appreciated. I know how to get
the Bound columns for the dynamic data to be read only, but I can't find
samples in VB on how to do the calculated field column or the Footer
totals...I've found lots in C#, but I need VB....TIA

Coleen

---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest
Community Website: http://www.dotnetjunkies.com/newsgroups/

Nov 20 '05 #2
Thank You!

---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

50
by: Jerry Sievers | last post by:
<venting> Fellow coders; I just get off the phone today with some clueless headhunter and after listing for her (very proudly I might add) my OS and dev tools platforms of choice; ...
220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
137
by: Philippe C. Martin | last post by:
I apologize in advance for launching this post but I might get enlightment somehow (PS: I am _very_ agnostic ;-). - 1) I do not consider my intelligence/education above average - 2) I am very...
5
by: Michele | last post by:
What does the CIO need to know about Sequel Server administration?
2
by: Dan Allen | last post by:
have a lot of questions about ASP.Net. 1. What products do I need from Microsoft to develop and run ASP.NET As background, I currently use Visual InterDev to make ASP applications deployed on...
2
by: Sylvain Larin | last post by:
My business object (BO) need to pass a table to the GUI. The BO and the GUI will reside on the same computer and will not use .NET remoting or web service for now, but will need to support .NET...
3
by: Newbie | last post by:
I am extremely new to the working of XML. Our client wants us to access their Website. They also want us to retrieve XML (files?) from their site. We will then somehow import it into our SQL...
12
by: johannblake | last post by:
First off, I am NOT a beginner. I have lots of experience developing professional web sites and am a professional software developer. Unfortunately I've been out of web site development for the...
4
by: asedt | last post by:
Hi I have done some applications in VS 2005 with VB. I have browse around on msdn (http://msdn.microsoft.com/sv-se/library/zfzh36t7(en-us,VS.80).aspx) for some time trying to find an answer on...
1
by: lmjoseph | last post by:
Hey guys & gals - I need to know what I need. Im trying to start an online business directory. If I wanted to build a hybrid site between yellowpages.com and angieslist.com, what do I need so I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.