Back to Devexpress

LayoutViewOptionsView.ViewMode Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutviewoptionsview-46eb83f2.md

latest4.7 KB
Original Source

LayoutViewOptionsView.ViewMode Property

Gets or sets the card layout.

Namespace : DevExpress.XtraGrid.Views.Layout

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(LayoutViewMode.SingleRecord)]
[XtraSerializableProperty]
public virtual LayoutViewMode ViewMode { get; set; }
vb
<DefaultValue(LayoutViewMode.SingleRecord)>
<XtraSerializableProperty>
Public Overridable Property ViewMode As LayoutViewMode

Property Value

TypeDefaultDescription
LayoutViewModeSingleRecord

A LayoutViewMode value.

|

Available values:

NameDescription
SingleRecord

A single card is displayed at one time.

| | Row |

Cards are arranged in a single row.

| | Column |

Cards are arranged in a single column.

| | MultiRow |

Cards are arranged in multiple rows.

| | MultiColumn |

Cards are arranged in multiple columns.

| | Carousel |

Cards are arranged in an ellipse using a transparency effect. Use the LayoutView.OptionsCarouselMode property to customize related display options.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ViewMode
LayoutView

.OptionsView .ViewMode

|

Remarks

Use the ViewMode property to specify how cards are arranged within a View.

An end-user can switch between display modes by clicking a corresponding button within the Header Panel. You can disable this feature by setting a corresponding Enable…Button option to false. These options are available via the LayoutView.OptionsHeaderPanel object.

To specify how cards are arranged when a View is printed, see the LayoutViewOptionsPrint.PrintMode property.

See Also

CardArrangeRule

CardsAlignment

AllowSwitchViewModes

EnableCarouselModeButton

EnableColumnModeButton

EnableMultiColumnModeButton

EnableMultiRowModeButton

EnableRowModeButton

EnableSingleModeButton

OptionsCarouselMode

OptionsSingleRecordMode

OptionsMultiRecordMode

PrintMode

Layout View

LayoutViewOptionsView Class

LayoutViewOptionsView Members

DevExpress.XtraGrid.Views.Layout Namespace