public class DataGridLayer
{
public double Layerdepth { get; set; } // (m)
public double Anndiameter { get; set; } // (inches)
public double Layergradient { get; set; } //(k/m)
public double Formationconductivity { get; set; } //(W/m/k)
public double Formationcapacity { get; set; } //(j/kg/k)
public double Ftiondensity { get; set; } //(kg/m3)
}
The above class is the datagrid layers.
I want to make sure the entered values in the datagrid cell are in (m),(inches),(k/m),(W/m/k),(j/kg/k),(kg/m3) . Is there a method to do this?
There is no ‘units’ for cells in the box. But you have several options to provide units:
Anndiameter (inches). Thus all entered values will be treated as inches.