Back to Devexpress

EditingField.ID Property

corelibraries-devexpress-dot-xtraprinting-dot-editingfield.md

latest2.8 KB
Original Source

EditingField.ID Property

Specifies the unique identifier of an editing field.

Namespace : DevExpress.XtraPrinting

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue("")]
public string ID { get; set; }
vb
<DefaultValue("")>
Public Property ID As String

Property Value

TypeDefaultDescription
StringString.Empty

A string that specifies the editing field’s ID.

|

Remarks

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

csharp
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

vb
Public Sub OnShowingEditingFieldEditor(ByVal args As ShowingEditingFieldEditorEventArgs)
    If args.EditingField.ID = "CheckField" OrElse args.EditingField.ID = "ImageField" Then
        args.Cancel = True

See Also

ID

EditingField Class

EditingField Members

DevExpress.XtraPrinting Namespace