例:public string InputFormat
加扩展属性:public string InputFormatText
构造函数中根据Key取到Value的值:
var data = DataSourceM.InputForMatDataSoures(GlobalVariables.ERP)
.Where(p => p.Key == info.InputFormat).SingleOrDefault();
if (data.Key != null)
this.InputFormatText = data.Value;
赋值Value到Grid列,隐藏Key