corelibraries-devexpress-dot-xtraprinting-dot-editingfield.md
Specifies the unique identifier of an editing field.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
[DefaultValue("")]
public string ID { get; set; }
<DefaultValue("")>
Public Property ID As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A string that specifies the editing field’s ID.
|
The field’s ID property corresponds to the EditOptions.ID property of a control.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ID 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-wpf-mvvm-how-to-validate-editing-fields/CS/ViewModel.cs#L16
public void OnShowingEditingFieldEditor(ShowingEditingFieldEditorEventArgs args) {
if(args.EditingField.ID == "CheckField" || args.EditingField.ID == "ImageField")
args.Cancel = true;
reporting-wpf-mvvm-how-to-validate-editing-fields/VB/ViewModel.vb#L18
Public Sub OnShowingEditingFieldEditor(ByVal args As ShowingEditingFieldEditorEventArgs)
If args.EditingField.ID = "CheckField" OrElse args.EditingField.ID = "ImageField" Then
args.Cancel = True
See Also