select max inside a dataset table

  • Thread starter Thread starter Uzi Baruch
  • Start date Start date
U

Uzi Baruch

Hi!

is there a way to do a select max on a field inside a dataset datatable ?

Thanks,
 
Hi,

I don't think you can do a max select but what you can do
is a datatable.Select(expr, sort), sort the field DESC
and then access the first row. Datatable.Select will
return you an array of datarows.

hope this helps
 
Uzi,
Try the Calculate method of the DataTable. See
DataTable.Compute Method in the help files.

Ron Allen
 

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

Back
Top