Working with a dataset

B

Bender

I have a dataset with tables in it that i have filled from my
database.

If i want to find the Max value from a column in my dataset how do i
do this?
 
M

Miha Markic

Hi Bender,

You might use DataTable.Compute method, example:
double result = dataset.Tables("mytable").Compute("Max(mycolumn)",
string.Empty);

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

Bender said:
I have a dataset with tables in it that i have filled from my
database.

If i want to find the Max value from a column in my dataset how do i
do this?



----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
=---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top