How to convert a DataRow into Custum DataTable

Hey! I am so lost in building a datatable from a datarow.

This is what I want to get:

I want to build a Datatable with 2 columns where I can save only the column name and the content…
Can you think of how to do it?

Thank you in advance!


Welcome to our UiPath community.

Download below package from UiPath Market place and use Transpose DataTable activity to do that.

Build datatable - dtNameValue

as an alternate we can do it controlled by a LINQ:
On data row Level

myDataRow - DataType: DataRow - the datarow



A data table based approach could look like this:

find starter help here.
DRowOrDTable_To_CName-Value_DTable.xaml (10.2 KB)

It works perfectly THANK YOU :heart:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.