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 2 1640
"kids_pro" <ki******@yahoo .com> wrote in message
news:eP******** ******@TK2MSFTN GP12.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).
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.co m
"kids_pro" <ki******@yahoo .com> wrote in message
news:eP******** ******@TK2MSFTN GP12.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 thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 tryed to use the monitor.enter(dataset) and monitor.exit(dataset) befor
updating the dataset but was useless.
I think the problem is the paint method of the datagrid, that you can not
override, so you can not synchronize the dataset.
Also there...
|
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 dsEmployees doesn't contain tblEmployees anymore, It contains a View in it(VewEmployees) and no primary key also.
|
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 the mail merge data source to
the database. But this request is a little bit different. The customer
needs to perform the mail merge from the contacts in a dataset.
Example
In the main contact window the client has the ability to filter contact...
|
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 allow user to filter the first time,
when they tried the second time, the speficied cast error message will
prompt one....
I create a mydataset1 first, and the mydataset1 data source was getting from
DataGrid.DataSource.
|
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 know why I cannot perform this casting
operation properly.
First off, I've got my Typed DataSet named "AuthInfo" declared and I
then created an instance of that class. What I'd like to do next is to
perform querying through the method...
| |
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 =
(Decimal)dsMyDataSet.Tables.Rows;
|
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 select all rows that meet certain criteria (just like "WHERE") and
to sort them (just like "ORDER BY").
I want to perform more analysis on this in-memory dataset such as
|
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 form to input user changes to the data in a
Button2_Click event handler
3. returns control to the Button2_Click event handler to perform the dataset
update
However it can’t find the data adapter ‘custDA’ to perform the update in the
|
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 dataset to data in a second
dataset, using a common key. I will first describe the problem in words and
then I will show my code, which has most of the solution done already.
I have built an ASP.NET that queries an Index Server and returns a...
|
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...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |