473,407 Members | 2,306 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,407 software developers and data experts.

DataSet to perform Agregate function

Hi there,

I think it is a stupid idea but I wonder since dataset is a disconnected
datasource.
Why not all some more functionality to it like SUM, AVG, MIN, MAX when?
So that we don't need to send round trip to the server. :) may be imposible
:D
Nov 16 '05 #1
2 1618

"kids_pro" <ki******@yahoo.com> wrote in message
news:eP**************@TK2MSFTNGP12.phx.gbl...
Hi there,

I think it is a stupid idea but I wonder since dataset is a disconnected
datasource.
Why not all some more functionality to it like SUM, AVG, MIN, MAX when?
So that we don't need to send round trip to the server. :) may be
imposible
:D
'


This would probably be best posted to the adonet group, you will likely have
a much wider pool of expertise than you will here. I know lots about C# and
the framework, but when it comes to datasets you can paint a big ole stupid
sign on me(I am more of a fan of domain objects than datasets, myself. But I
don't want any lectures on that, everyone).

Nov 16 '05 #2
kids_pro,

You can do this. You can add another column to the DataTable and set
the Expression property to the aggregate function you want. If you want to
perform these operations by grouping, then you will have to create a
relation to another table which will group the values properly.

Check the Expression property on the DataColumn class for more
information on how to get the aggregate functions to work.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"kids_pro" <ki******@yahoo.com> wrote in message
news:eP**************@TK2MSFTNGP12.phx.gbl...
Hi there,

I think it is a stupid idea but I wonder since dataset is a disconnected
datasource.
Why not all some more functionality to it like SUM, AVG, MIN, MAX when?
So that we don't need to send round trip to the server. :) may be
imposible
:D

Nov 16 '05 #3

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

Similar topics

4
by: Zürcher See | last post by:
I have in a form a datagrid that display a dataset, but if I start a new thread that fill the dataset the program will crash, that's because the dataset is not synchronized, is not thread safe. I...
1
by: Kiran | last post by:
Hi, There is FindByColName() function which is used to find a row in a table based on the column value. for eg. dsEmployees.tblEmployees.FindByFirstName("Kiran") Now my typed dataset...
2
by: Mike Stephens | last post by:
A contact management application we previously developed for a customer now has a requirement to perform mail merging. Normally request like this would be very simple to solve, we were just point...
17
by: A_PK | last post by:
I have problem databinding the DataGrid with DataView/DataSet after the filter... I create the following proceudre in order for user to filter as many as they want, but the following code is only...
1
by: Optimus | last post by:
Hi everyone, I currently develop an application in vs.net 2005 with vb.net. I was trying to use typed dataset and I've got in trouble for converting untyped dataset into Typed DataSet. I don't...
7
by: Peter | last post by:
Gday, I have a dataset with multiple tables, from which I want to access a single value in one of those tables. I know I can do something like: Decimal myVar =...
3
by: BillJohnson4 | last post by:
Experts: I have built an in-memory dataset by parsing a flat file so that I can display the contents onto a datagrid. The Microsoft C# .NET System.Data.DataTable.Select() method allows me to...
0
by: Southcoaster | last post by:
I am relatively new to Visual Basic 2005 Express Edition. I am trying to create a simple program that: 1. Creates and populates a dataset in the form_load handler 2. Transfers control to a new...
3
by: Ken Fine | last post by:
This is a question that someone familiar with ASP.NET and ADO.NET DataSets and DataTables should be able to answer fairly easily. The basic question is how I can efficiently match data from one...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.