/// <summary> /// Gets a string representation of the column's value so that it can be matched with /// values populated in a dropdown. This currently works for FK and Enum columns only. /// The method returns null for other column types. /// </summary> /// <returns></returns> protected string GetSelectedValueString() { Type enumType; if (Column is MetaForeignKeyColumn) { return(ForeignKeyColumn.GetForeignKeyString(Row)); } else if (Column.IsEnumType(out enumType)) { return(Misc.GetUnderlyingTypeValueString(enumType, FieldValue)); } return(null); }