Skip to main content

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.v24.2.dll

Declaration

[DefaultValue(ExportMode.Default)]
[DXCategory("Behavior")]
public virtual ExportMode ExportMode { get; set; }

Property Value

Type Default Description
ExportMode Default

A ExportMode enumeration value.

Available values:

Name Description
Default

Either an editor’s value or display text is exported, depending on the editor’s type. For the ImageComboBoxEdit and LookUpEdit controls, their display text is exported. For other editors, their edit values (BaseEdit.EditValue), which sometimes match the display text, are exported.

DisplayText

An editor’s display text is exported.

Value

An editor’s edit value is exported.

Remarks

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