Number of elements of a datarow



How can I get the number of elements on a single datarow?
I’m trying to read all elements from a datarow that is passed as an argument. The number of elements isn’t static, so i’d like to know inside my method how many elements are there.
Is not getting the number of elements can I apply a for each to a dataRow? I’ve tried diferent ways but can’t do it.

Renato Quintal



Does this work?


Yeah man it does! Thank you!