Getting Error when Assigning a Datarow to a variable whats wrong in the code syntax
1 Like
Test to change Let to Dim.
1 Like
1 Like
1 Like
Are you trying something like this?
dt.AsEnumerable.ToList.ForEach(Sub(r) r("ColumnName") = If(Condition,"0",r("RequiredColumn").ToString))
Cheers