Hope these steps would help you to resolve this
you were almost done, i hope you would have tried to add datarow while looping or while the datatable is been accessed in the middle
–if we have the datatable named dt ready
–use a INVOKE METHOD like this
here you go with a sample xaml
invoke.zip (2.3 KB)
Cheers @Raju_Balla