U Uzi Baruch Jan 14, 2004 #1 Hi! is there a way to do a select max on a field inside a dataset datatable ? Thanks,
N Neil Jan 14, 2004 #2 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
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
R Ron Allen Jan 14, 2004 #3 Uzi, Try the Calculate method of the DataTable. See DataTable.Compute Method in the help files. Ron Allen
Uzi, Try the Calculate method of the DataTable. See DataTable.Compute Method in the help files. Ron Allen