Hi All, I wanted to run some VB.net code in an Invoke code activity, but I always get an exception message which is: Exception has been thrown by the target of an invocation.
' Use LINQ to set the background color of all rows to red '
dtLegajos1.AsEnumerable().ToList().ForEach(Sub(row) row.SetField(Of Object)("BackColor", "Red"))
' Create a new DataTable and copy the rows from the original table '
newTable = dtLegajos1.Clone()
For Each row As DataRow In dtLegajos1.Rows
newTable.ImportRow(row)
Next
Any help on this is greatly appreciated, thank you, or if there is another solution I would also appreciate it