Error --> Assign: Exception has been thrown by the target of an invocation

@Kian

Can you tell me what you are assigning?

Do you want to set the value to the Datatable back?

If so, then you have to write as
DT.Rows(index).Item("ColumnName").ToString = "Your Value"

Where Index is the variable created for For Each row Index in properties

For reference you can check as below

Hope this helps you

Thanks