?
Solved

How to requery a dataset

Posted on 2006-07-06
3
Medium Priority
?
875 Views
Last Modified: 2007-12-19
Hi,

Iam working on a ASP.Net project. Iam pulling the data from Domino server and dumping into a dataset. The dataset contains the set of records. I want to perform a SQL query on that dataset, which also include aggregate functions. The resultant data, i would like to display into a datagrid.
0
Comment
Question by:techietech
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Accepted Solution

by:
Shakti109 earned 500 total points
ID: 17054695

When you get the dataset back, you can use table.compute functions to do things to it.

Check out the documentation at :
http://msdn2.microsoft.com/en-us/library/system.data.datatable.compute.aspx

To display the data in a datagrid, simply set the datasource property of the grid to the table within the dataset you create (either the derived dataset based on your calls to datatable.compute, or the original one).

Like : Me.DataGrid1.DataSource = newdataset.Tables(0)

For simple selects from a table within a dataset look at the .Select method of the datatable class which is described in the documentation as :
Public Function [Select](ByVal filterExpression As String, ByVal sort As String) As System.Data.DataRow()

An example is : SourceTable.Select("name = bob")
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question