protected override object ConvertColumnData(TypeWithConverter p_ColumnType, string p_ColumnData) { if (p_ColumnType.Type == typeof(decimal)) { p_ColumnData = p_ColumnData.Replace(".", ","); } return(base.ConvertColumnData(p_ColumnType, p_ColumnData)); }
protected virtual object ConvertColumnData(TypeWithConverter p_ColumnType, string p_ColumnData) { if (p_ColumnType.Type == typeof(string)) { _ReplaceSpecialChars.ForEach(m => { if (p_ColumnData.Contains(m.Item2)) { p_ColumnData = p_ColumnData.Replace(m.Item2, m.Item1.ToString()); } }); return(p_ColumnData); } return(string.IsNullOrEmpty(p_ColumnData) ? null : p_ColumnType.TypeConverter.ConvertFromString(p_ColumnData)); //Convert.ChangeType not suppor GUID //return string.IsNullOrEmpty(p_ColumnData) ? null : Convert.ChangeType(p_ColumnData, p_ColumnType); }