Back to Devexpress

DataTableExportOptions.SkipEmptyRows Property

officefileapi-devexpress-dot-spreadsheet-dot-export-dot-datatableexportoptions-6defdf53.md

latest3.0 KB
Original Source

DataTableExportOptions.SkipEmptyRows Property

Gets or sets whether to skip rows containing only empty cells in the exported range.

Namespace : DevExpress.Spreadsheet.Export

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public bool SkipEmptyRows { get; set; }
vb
Public Property SkipEmptyRows As Boolean

Property Value

TypeDescription
Boolean

true , to skip rows with empty cell values; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to SkipEmptyRows
DataTableExporter

.Options .SkipEmptyRows

|

Remarks

If the DataTableExportOptions.ConvertEmptyCells is set to true , the SkipEmptyRows property is ignored.

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

Note

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.

how-to-export-cell-range-to-a-datatable/CS/ExportToDataTableExample/Form1.cs#L82

csharp
if (stopOnEmptyRow) {
    exporter.Options.SkipEmptyRows = false;
    // Handle empty row.

how-to-export-cell-range-to-a-datatable/VB/ExportToDataTableExample/Form1.vb#L79

vb
If stopOnEmptyRow Then
    exporter.Options.SkipEmptyRows = False
    ' Handle empty row.

See Also

DataTableExportOptions Class

DataTableExportOptions Members

DevExpress.Spreadsheet.Export Namespace