Back to Devexpress

EditOptions.Enabled Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-editoptions.md

latest4.2 KB
Original Source

EditOptions.Enabled Property

Specifies whether editing a control’s content in Print Preview is enabled.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[DefaultValue(false)]
public bool Enabled { get; set; }
vb
<DefaultValue(False)>
Public Property Enabled As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true , to enable editing a control’s content; otherwise, false.

|

Remarks

If the Enabled property is set to true and the EditOptions.ReadOnly option is disabled, the control’s content can be edited in Print Preview (clicking a field will invoke the appropriate editor).

For more information, see Content Editing in Print Preview.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Enabled 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.

reporting-winforms-custom-controls-for-editing-report-content-in-print-preview/CS/RegisterCustomFieldEditor/Form1.cs#L59

csharp
// Enable content editing for controls and assign the required editors.
report.xrLabel1.EditOptions.Enabled = true;
report.xrLabel1.EditOptions.EditorName = "ComboBoxEditor";

wpf-reporting-use-custom-controls-for-editing-report-content-in-print-preview/CS/MainViewModel.cs#L22

csharp
// Enable content editing for controls and assign the required editors.
report.xrLabel1.EditOptions.Enabled = true;
report.xrLabel1.EditOptions.EditorName = "ComboBoxEditor";

reporting-winforms-custom-controls-for-editing-report-content-in-print-preview/VB/RegisterCustomFieldEditor/Form1.vb#L50

vb
' Enable content editing for controls and assign the required editors.
report.xrLabel1.EditOptions.Enabled = True
report.xrLabel1.EditOptions.EditorName = "ComboBoxEditor"

wpf-reporting-use-custom-controls-for-editing-report-content-in-print-preview/VB/MainViewModel.vb#L24

vb
' Enable content editing for controls and assign the required editors.
report.xrLabel1.EditOptions.Enabled = True
report.xrLabel1.EditOptions.EditorName = "ComboBoxEditor"

See Also

Edit Content in Print Preview

EditOptions Class

EditOptions Members

DevExpress.XtraReports.UI Namespace