public static void SetFieldName(this LayoutControlItem item, string fieldName = null) { if (string.IsNullOrEmpty(fieldName)) { fieldName = item.Name.Replace("lcItem", string.Empty); } var caption = DomainUtils.GetFieldName(fieldName); item.SetFieldCaption(caption); }