473,809 Members | 2,709 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help to make a total sum of datagrid

Hi,

Could someone help me

I have a form where i chose the customer
so i also have on this form a datagrid with with the invoices of this
customer i have shosen
Now: I want to have the sum a my textbox of the column "totals" from of the
invoices shown in the datagrid

Hope someone can help me...

thanks in advance,

Marc.


Nov 20 '05 #1
2 1429
Hi Booster,

Use the datatable.compu te from the table which is the datasource of your
datagrid.

http://msdn.microsoft.com/library/de...mputetopic.asp
I hope this helps?

Cor
Nov 20 '05 #2
Hi Cor

Thanks
It helped me good with a little change
Works fine now

Marc.


"Cor Ligthert" <no**********@p lanet.nl> wrote in message
news:u$******** ******@TK2MSFTN GP12.phx.gbl...
Hi Booster,

Use the datatable.compu te from the table which is the datasource of your
datagrid.

http://msdn.microsoft.com/library/de...mputetopic.asp

I hope this helps?

Cor

Nov 20 '05 #3

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

Similar topics

2
5342
by: Jon | last post by:
I have a datagrid with a total row on the bottom. What is the best method to "instantly" update the total row when the value of any row changes. I am running into problems when I use the column changed event to calculate the total and assign it directly to the grid -> myDataGridObject=newTotal. When I do this, more change events are fired, causing unwanted consequences.
0
2139
by: buran | last post by:
Dear ASP.NET Users, How can I get the total number of rows selected by the command text of the datagrid (items in datagrid)? If I use the statement grdSP.Items.Count with the datagrid grdSP with paging, it returns the page size (5,10..) not the total results. How can I get the total no? Thanks in advance, Buran
2
1444
by: brian richards | last post by:
The datagrid in my page always looks greyed out. But DataGrid.Enabled is set to true. It's never set to false. Is there any other way enabled may be set to false? Or maybe another reason other than the Enabled property that would cause this? I've included the asp.net code and the C# databind code. Thanks
1
1680
by: Shalin Parmar | last post by:
hello I am a new bee in asp.net. I want to make a forum in my site which shows message posts and its total replies. So I had put treeview (IE Web Controls) in datagrid. I need help for that. How can I set my code so that I can get every row of datagrid and its treeview with events Pls help me. i need it immediatel
0
269
by: Kaushik Mandal | last post by:
Hi I am trying to make a ASP.NET report where I would like to show the Sum Total and the Grand total on the reports . I am trying to do this using SQL server ROLL UP function . But it does not work . Could any one plase help me ? Here is my code.
1
1415
by: uknees | last post by:
Hi, I am a little rusty with vb.net so, i hope anyone can help. I would like to know where i can get information on how to bind data to a datagrid programmatically and also bind and format the columns to reflect the data that is friendly to the users. for example, i have a dataset ready to bind to the datagrid. -how can i make sure that only the columns that needs to be displayed
6
4688
by: Coleen | last post by:
Hi All :-) Thanks for all of your help Cor :-) I can not get the code you sent me to work in my application. I'm using an aspx datagrid in a web form. I'm getting the following error message when I try this code: "Syntax error in aggregate argument: Expecting a single column argument with possible 'Child' qualifier." Dim dr2 As DataRow = dt_stat_report_3b.NewRow Dim sum As Double =...
2
11128
by: patang | last post by:
I found the following to count the total number of VISIBLE rows of datagrid datagrid.visiblerowcount How do we count the total number of ACTUAL (not just visible) rows of datagrid? Thanks in advance.
1
1296
by: methexandude | last post by:
Hi, I'm populating a datagrid with values and adding one of the columns to get a total. It adds up correctly but rounds off the values. For example if the total is 2.56789 it makes it three as a total and shows in the footer of the grid. I wanna get exact 2.56789 to show. I tried converting it to decimal but still it rounds it off. Any help will be appreciated. Sub ComputeSum(ByVal sender As Object, ByVal e As DataGridItemEventArgs)
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9602
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10639
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10120
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7661
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.