Back to Devexpress

EditorEventArgs.Editor Property

wpf-devexpress-dot-xpf-dot-grid-dot-editoreventargs-315e56f6.md

latest3.1 KB
Original Source

EditorEventArgs.Editor Property

Gets or sets an editor, for which an event has been raised.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public IBaseEdit Editor { get; }
vb
Public ReadOnly Property Editor As IBaseEdit

Property Value

TypeDescription
DevExpress.Xpf.Editors.IBaseEdit

An object that implements the DevExpress.Xpf.Editors.IBaseEdit interface.

|

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

wpf-data-grid-use-autosuggesteditsettings/CS/MainWindow.xaml.cs#L23

csharp
void ShownEditor(object sender, EditorEventArgs e) {
    ActiveEditor = e.Editor as AutoSuggestEdit;
    if (ActiveEditor != null)

wpf-data-grid-filter-column-lookupedit-based-on-value-in-another-column/CS/MainWindow.xaml.cs#L52

csharp
return;
LookUpEditBase editor = e.Editor as LookUpEditBase;
if (editor == null)

wpf-data-grid-use-autosuggesteditsettings/VB/MainWindow.xaml.vb#L25

vb
Private Sub ShownEditor(ByVal sender As Object, ByVal e As EditorEventArgs)
    ActiveEditor = TryCast(e.Editor, AutoSuggestEdit)
    If ActiveEditor IsNot Nothing Then AddHandler ActiveEditor.QuerySubmitted, AddressOf QuerySubmitted

wpf-data-grid-filter-column-lookupedit-based-on-value-in-another-column/VB/MainWindow.xaml.vb#L76

vb
If Not Equals(e.Column.FieldName, "CityId") Then Return
Dim editor As LookUpEditBase = TryCast(e.Editor, LookUpEditBase)
If editor Is Nothing Then Return

See Also

EditorEventArgs Class

EditorEventArgs Members

DevExpress.Xpf.Grid Namespace