How to add only a particular column using LINQ

(From row in dt.AsEnumerable
Select dt.Clone.Rows.Add({row(“ColumnName”)})).CopyToDataTable

Then use invoke code and remove unnecessary column names where target object is dt2.Columns and method is RemoveAt

1 Like