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
 
Back
Top