Hi All,
I’m trying to execute below linq query on a datatable.
(from row in InwardDT.AsEnumerable() where row.Field(of Integer)(“Income”) > 4000 select row).CopyToDataTable. It throws me the below error
“Assign: Specified cast is not valid.” . However, the same query works when I make use of string field
(from row in InwardDT.AsEnumerable() where row.Field(of String)(“City”) = “Mumbai” select row).CopyToDataTable. → Works as expected.
Have attached the xaml file for reference.
InwardData.xlsx (8.1 KB)
ExcelScrubbing.xaml (8.5 KB)
Any kind of assistance would be of great help…
Thank you in advance.