Back to Devexpress

EditorEventArgsBase.Source Property

wpf-devexpress-dot-xpf-dot-grid-dot-editoreventargsbase-6019d1e7.md

latest2.5 KB
Original Source

EditorEventArgsBase.Source Property

Gets the View that raised the event.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public DataViewBase Source { get; }
vb
Public ReadOnly Property Source As DataViewBase

Property Value

TypeDescription
DataViewBase

A DataViewBase descendant that is the view that raised the event.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Source 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-filter-column-lookupedit-based-on-value-in-another-column/CS/MainWindow.xaml.cs#L55

csharp
return;
TableView view = (TableView)e.Source;
int countryId = (int)view.Grid.GetCellValue(e.RowHandle, "CountryId");

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

vb
If editor Is Nothing Then Return
Dim view As TableView = CType(e.Source, TableView)
Dim countryId As Integer = CInt(view.Grid.GetCellValue(e.RowHandle, "CountryId"))

See Also

EditorEventArgsBase Class

EditorEventArgsBase Members

DevExpress.Xpf.Grid Namespace