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)
}
上面的类是数据网格层。我想确保在 datagrid 单元格中输入的值在(m),(inches),(k/m),(W/m/k),(j/kg/k),(kg/m3)
. 有没有办法做到这一点?