Browse Source
clear selected item from CollectionView if null
pull/5787/head
Roland Soós
5 years ago
No known key found for this signature in database
GPG Key ID: 93AFD926BA9254F5
1 changed files with
5 additions and
0 deletions
-
src/Avalonia.Controls.DataGrid/DataGrid.cs
|
|
|
@ -910,6 +910,11 @@ namespace Avalonia.Controls |
|
|
|
|
|
|
|
// Clear all row selections
|
|
|
|
ClearRowSelection(resetAnchorSlot: true); |
|
|
|
|
|
|
|
if (DataConnection.CollectionView != null) |
|
|
|
{ |
|
|
|
DataConnection.CollectionView.MoveCurrentTo(null); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
|