Serenity.Data.Row.FindField C# (CSharp) Method

FindField() public method

public FindField ( string fieldName ) : Field
fieldName string
return Field
        public Field FindField(string fieldName)
        {
            return fields.FindField(fieldName);
        }

Usage Example

 public static List<PropertyItem> GetCustomFieldPropertyItems(IEnumerable<ICustomFieldDefinition> definitions, Row row, string fieldPrefix)
 {
     var list = new List<PropertyItem>();
     foreach (var def in definitions)
     {
         string name = fieldPrefix + def.Name;
         var field = row.FindFieldByPropertyName(name) ?? row.FindField(name);
         list.Add(GetCustomFieldPropertyItem(def, field));
     }
     return list;
 }
All Usage Examples Of Serenity.Data.Row::FindField