It will be better if you could provide us with more details.
Because there is no such built-in functionality.
It depends on the case it could handle it.
For example, you could create an additional hidden column which you could use as metadata.
Also, you could try to use the getcellvalue method as you get the current rowboundindex from the third argument of the aggregates member.