Am using DataTable in C# and am trying to manipulate, modify one of the column. Consider sample data below
Id City Temperature
-------------------
1 A -12
2 B 23
3 C 12
And after conversion i want the below result where am converting Minus to M and Positive values to P
Id City Temperature
-------------------------
1 A 12M
2 B 23P
3 C 12P
Can i achieve this using LINQ..Am parsing this with around 50k Rows and dont want to compromise on performance.what are the other best ways ?
Temperature-columns's data typeint?DataTable. I've provided an answer which shows how to create a new table.