wpf-devexpress-dot-xpf-dot-grid-dot-editoreventargsbase-6019d1e7.md
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
public DataViewBase Source { get; }
Public ReadOnly Property Source As DataViewBase
| Type | Description |
|---|---|
| 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
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
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