How to? New datatable column as substring of existing column without for each

Hello People,

I believe replacing ‘Column3’ with ‘Column2’ in the above LINQ query as below will work:
From : Let a = row(“Column3”).ToString.Substring(0,2)

to Let a = row(“Column2”).ToString.Substring(0,2)

@PeCour, try the above one

Regards,
Kalyan

1 Like