Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filtering a DataSet or DataTable

Status
Not open for further replies.
Oct 15, 2002
10
DE
Hello,

I'm new to SQL Server T-SQL and C#.

In a method of a web application, I create an SQLDataAdapter and execute a stored procedure on the SQL Server from within the C# method. The corresponding query result is filled into a DataSet. Now I want to filter the result set in the same method according to some criteria like:

FilteredResult =
filter (FilledDataSet or DataTable, criteria)

where criteria is something like:

select ....
from ...
where ....
.
.
.



Could you give me a simple example?

Thank you in advance.

Gareth
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top