Skip to main content

GridOptionsView.ShowPreview Property

Gets or sets whether to display the preview sections.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.1.dll

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


public virtual bool ShowPreview { get; set; }

Property Value

Type Default Description
Boolean false

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

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowPreview
.OptionsView .ShowPreview


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.

Data Grid - Preview Sections

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


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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowPreview property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also