I am trying to create a new row when I have the filtered results of a linq query. I want the syntax to be something like the following, but I don't know what to do. I am trying to create a new row with a selection of different fields from the old row.
dv = (from row in MV.Data.AsEnumerable()
where !(row["eCode"].ToString().Contains("OP"))
select DataRow(row["time"], row["value"],
row["size"], row["condition"],
row["eCode"]))
.CopyToDataTable().DefaultView;