I’m exploring ways on converting DataRow to DataTable. Found a solution, CopyToDataTable but need to add reference as here. I would like to know if this is considered as external reference during the practical exam.
If yes, I would like to know what is the easiest option available. I found two here (might help others):
- New DataTable, initialize new fooDT > Assign fooDT = oldFooDT.Clone >
For Each > Add Data Row > where ArrayRow = foo.ItemArray
- New DataTable > Build Data Table > For Each > Add Data Row > where ArrayRow = foo.ItemArray .
Either way, I’m not sure which one is much better and accepted during the practical exam. Saw many of this subject discussed here. Appreciate your insight.