Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to requery a dataset

Posted on 2006-07-06
3
Medium Priority
?
885 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

618 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