I have a DataTable
with some Column values filled with. I want to Convert the Column values from one unit to another.
DataTable Columns(Name,Height,Width)
Eg:Inch to Meter, Meter to Centimeter etc.
Id UnitName
1 Inches
2 Millimeters
3 Fractions
4 Decimal
5 Feet
6 Centimeters
7 Meters
private string Convert(string strToConvert, int from, int to)
{
//some code here
return strToConvert;
}