public static bool IsVisibleForRow(this Field field, DataAction dataAction) { switch (dataAction) { case DataAction.Create: return(FieldExtentions.IsVisibleForCreate(field)); case DataAction.Report: return(FieldExtentions.IsVisibleForReport(field)); case DataAction.Edit: return(FieldExtentions.IsVisibleForEdit(field)); case DataAction.InlineAdding: return(FieldExtentions.IsVisibleForCreate(field)); case DataAction.InlineEditing: return(FieldExtentions.IsVisibleForEdit(field)); default: throw new NotSupportedException(); } }
public static bool IsVisibleForEdit(this Field field) { return(FieldExtentions.IsVisibleForEdit(field)); }