Convert Datarow into list of datarow

Hii,
I want to store a datarow value into a list of datarow in assign activity

I m getting error in it.
Please help how to convert

Hey @Doonline,

Kindly find the snippet below.

list_DR = new List(Of DataRow)({ DR })

Hope this helps.

Thanks
#nK

1 Like

Hi @Doonline

Please try this,

row - datarow

row.itemarray.tolist

Thanks

1 Like

the lazy approach:
{YourDataRowVar}.toList()

2 Likes

Hi,

Do you mean add DataRow instance to List of DataRow using Assing activity?
If so, can you try the following?

listDataRow = listDataRow.Concat({dr}).ToList()

Regards,

2 Likes

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