DetailViewLayoutAttribute.ColumnPosition Property
Returns the LayoutColumnPosition collection.
Namespace: DevExpress.ExpressApp.Model
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
Nullable<LayoutColumnPosition> | The position of a column in which the editor of the target property is placed. |
Remarks
This property is in effect if the target property is in the SimpleEditors layout group with two columns. The second column is generated automatically when the number of editors in a group is more than the EditorsMaxCountForLayoutInFlow value.
public class Contact : BaseObject {
[DetailViewLayoutAttribute(LayoutColumnPosition.Left)]
public virtual string FirstName { get; set; }
[DetailViewLayoutAttribute(LayoutColumnPosition.Right)]
public virtual string LastName { get; set; }
[DetailViewLayoutAttribute("FullName", 0)]
public string FullName {
get { return FirstName + " " + LastName; }
}
[DetailViewLayoutAttribute(LayoutColumnPosition.Left)]
public virtual string Email { get; set; }
[DetailViewLayoutAttribute(LayoutColumnPosition.Right)]
public virtual Contact Manager { get; set; }
[DetailViewLayoutAttribute(LayoutColumnPosition.Left)]
public virtual DateTime? Birthday { get; set; }
[FieldSize(FieldSizeAttribute.Unlimited)]
[DetailViewLayoutAttribute("NotesAndRemarks", LayoutGroupType.TabbedGroup, 100)]
public virtual string Notes { get; set; }
[FieldSize(FieldSizeAttribute.Unlimited)]
[DetailViewLayoutAttribute("NotesAndRemarks", LayoutGroupType.TabbedGroup, 100)]
public virtual string Remarks { get; set; }
}
// Make sure that you use options.UseChangeTrackingProxies() in your DbContext settings.
For information on other ways to customize a Detail View layout, refer to the following help topic: Detail View Layout Customization.
See Also