Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    PGridOptionsView.EditorAlignment Property

    Gets or sets whether editors are aligned at the left, right, center, or stretched.

    Namespace: DevExpress.XtraVerticalGrid

    Assembly: DevExpress.XtraVerticalGrid.v25.1.dll

    NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

    #Declaration

    [DefaultValue(EditorAlignment.Default)]
    [XtraSerializableProperty]
    public EditorAlignment EditorAlignment { get; set; }

    #Property Value

    Type Default Description
    EditorAlignment Default

    A value that specifies whether editors are aligned at the left, right, center, or stretched.

    Available values:

    Name Description
    Default

    The alignment is not specified explicitly. Uses the Center value.

    Near

    Aligns the editor at the row’s near edge.

    Far

    Aligns the editor at the row’s far edge.

    Center

    Aligns the editor at the row’s center.

    Stretch

    The editor is stretched up to the caption.

    #Property Paths

    You can access this nested property as listed below:

    Object Type Path to EditorAlignment
    PropertyGridControl
    .OptionsView .EditorAlignment

    #Remarks

    In the Office view, you can use the following options to specify how editors are displayed in rows:

    • RecordWidth — specifies the relative width of the column that displays property editors. 100 corresponds to one-third of the control’s total width.

      Property Grid

    • EditorPosition — specifies whether property editors are located before or after property captions. All editors are located after captions except check editors.

      Property Grid

      You can use a row’s EditorPosition option to override this setting for that row.

    • EditorAlignment — specifies whether editors are aligned at the left, right, center, or stretched in the column that displays editors.

      If this property is set to Stretch, the RecordWidth property is not in effect, and editors are stretched up to property captions.

      Property Grid

      The Near, Far, and Center values are only in effect for check editors displayed after property captions. Other editors can only be stretched (the Stretch value) or correspond to the record width (the Default value).

      Property Gride

      You can use a row’s EditorAlignment option to override this setting for that row.

    See Also