Skip to main content
All docs
V21.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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

SnapList.SkipEmptyListOnExport Property

Gets or sets whether an empty list should appear in a printout or an export output.

Namespace: DevExpress.Snap.Core.API

Assembly: DevExpress.Snap.v21.2.Core.dll

NuGet Package: DevExpress.Snap.Core

#Declaration

bool SkipEmptyListOnExport { get; set; }

#Property Value

Type Description
Boolean

true, to skip an empty list when a document is printed or exported; otherwise, false.

The default is false.

#Remarks

By default, if the Snap control cannot retrieve data from the underlying data source for a specific field in a template document (e.g., when there is no corresponding column in the data source), it displays the field name instead. However, when you print or export this template to a third-party format, the field name doesn’t appear in the resulting document. Instead, an empty list is generated. To change this default behavior and avoid empty data on previewing and exporting a document, set the SkipEmptyListOnExport property to true. In this case, the entire empty list (including the list header and list footer) will be excluded from the resulting document.

See Also