Back to Devexpress

GridOptionsView.ShowPreview Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsview-0ecdcaef.md

latest3.2 KB
Original Source

GridOptionsView.ShowPreview Property

Gets or sets whether to display the preview sections.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool ShowPreview { get; set; }
vb
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property ShowPreview As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true , to display row preview sections; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ShowPreview
GridView

.OptionsView .ShowPreview

|

Remarks

Previews are non-editable rows displayed below regular data rows. To display preview sections, set the ShowPreview property to true and assign a data field to the GridView.PreviewFieldName property. A preview is not displayed for the new item row and auto filter row.

Read the following topic for detailed information: Row Preview Sections.

Note

If the Row Auto-Height or Preview Sections feature is enabled, pixel-based vertical row scrolling is not in effect. See GridOptionsBehavior.AllowPixelScrolling to learn more.

See Also

AutoCalcPreviewLineCount

GetRowPreviewDisplayText(Int32)

CalcPreviewText

ShowPreviewRowLines

GridOptionsView Class

GridOptionsView Members

DevExpress.XtraGrid.Views.Grid Namespace