Back to Devexpress

GridValidateRowDeletionEventArgs.Rows Property

wpf-devexpress-dot-xpf-dot-grid-dot-gridvalidaterowdeletioneventargs-2dfd2490.md

latest2.1 KB
Original Source

GridValidateRowDeletionEventArgs.Rows Property

Gets rows that a user wants to delete.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public virtual object[] Rows { get; }
vb
Public Overridable ReadOnly Property Rows As Object()

Property Value

TypeDescription
Object[]

An array of rows that a user wants to delete.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Rows 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-bind-to-infiniteasyncsource/CS/InfiniteAsyncSourceSample/MainWindow.xaml.cs#L124

csharp
private void DeleteRows(object sender, DevExpress.Xpf.Grid.GridValidateRowDeletionEventArgs e) {
    foreach(var row in e.Rows) {
        IssuesService.DeleteIssueAsync((IssueData)row).Wait();

See Also

GridValidateRowDeletionEventArgs Class

GridValidateRowDeletionEventArgs Members

DevExpress.Xpf.Grid Namespace