xtrareports-devexpress-dot-xtrareports-dot-ui-dot-editoptions.md
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
[DefaultValue(false)]
public bool Enabled { get; set; }
<DefaultValue(False)>
Public Property Enabled As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true , to enable editing a control’s content; otherwise, false.
|
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.
// Enable content editing for controls and assign the required editors.
report.xrLabel1.EditOptions.Enabled = true;
report.xrLabel1.EditOptions.EditorName = "ComboBoxEditor";
// Enable content editing for controls and assign the required editors.
report.xrLabel1.EditOptions.Enabled = true;
report.xrLabel1.EditOptions.EditorName = "ComboBoxEditor";
' Enable content editing for controls and assign the required editors.
report.xrLabel1.EditOptions.Enabled = True
report.xrLabel1.EditOptions.EditorName = "ComboBoxEditor"
' Enable content editing for controls and assign the required editors.
report.xrLabel1.EditOptions.Enabled = True
report.xrLabel1.EditOptions.EditorName = "ComboBoxEditor"
See Also