Back to Devexpress

EditorEventArgsBase.RowHandle Property

wpf-devexpress-dot-xpf-dot-grid-dot-editoreventargsbase-2fe27b79.md

latest2.5 KB
Original Source

EditorEventArgsBase.RowHandle Property

Gets or sets the row handle, for which an event has been raised.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public int RowHandle { get; }
vb
Public ReadOnly Property RowHandle As Integer

Property Value

TypeDescription
Int32

An integer value representing the row handle.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RowHandle 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#L56

csharp
TableView view = (TableView)e.Source;
int countryId = (int)view.Grid.GetCellValue(e.RowHandle, "CountryId");
editor.ItemsSource = Cities.Where(city => city.CountryId == countryId).ToList();

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

vb
Dim view As TableView = CType(e.Source, TableView)
Dim countryId As Integer = CInt(view.Grid.GetCellValue(e.RowHandle, "CountryId"))
editor.ItemsSource = Cities.Where(Function(city) city.CountryId = countryId).ToList()

See Also

EditorEventArgsBase Class

EditorEventArgsBase Members

DevExpress.Xpf.Grid Namespace