A newer version of this page is available. Switch to the current version.

RepositoryItem.ExportMode Property

Specifies whether the editor's value or display text is exported when data is exported to XLS and CSV formats.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.2.dll


public virtual ExportMode ExportMode { get; set; }
Public Overridable Property ExportMode As ExportMode

Property Value

Type Default Description


A ExportMode enumeration value.


The following considerations are applied when exporting data to XLS and CSV formats. In default export mode (when the ExportMode property is set to ExportMode.Default), editor values are exported differently, depending on the editor's type. For the ImageComboBoxEdit and LookUpEdit controls, their display text is exported by default. For other editors, their edit values (BaseEdit.EditValue), which sometimes match the display text, are exported. To change this default logic for a specific editor, set the ExportMode property to the required value.

For a RepositoryItemCheckEdit object, the ExportMode property is ignored. For these editors, values of the RepositoryItemCheckEdit.DisplayValueChecked, RepositoryItemCheckEdit.DisplayValueUnchecked and RepositoryItemCheckEdit.DisplayValueGrayed properties are exported, according to the editor's current value.

In Data-Aware export mode, display values are exported by default for columns that use lookup and image-combobox editors. You can set the columns' ExportMode property to Value to export edit values instead of display values.

See Also