Is there a better way to loop through all elements of a datatable?

Thanks!