From c466e960d1947d0adb745532faacbe9f97507f63 Mon Sep 17 00:00:00 2001 From: Brubning Date: Thu, 29 Feb 2024 03:57:00 +0000 Subject: [PATCH] Removed ClearRowSelection when action is SelectFromAnchorToCurrent. (#14738) --- src/Avalonia.Controls.DataGrid/DataGrid.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Avalonia.Controls.DataGrid/DataGrid.cs b/src/Avalonia.Controls.DataGrid/DataGrid.cs index e36bfb6c45..ad7f905c64 100644 --- a/src/Avalonia.Controls.DataGrid/DataGrid.cs +++ b/src/Avalonia.Controls.DataGrid/DataGrid.cs @@ -2830,7 +2830,6 @@ namespace Avalonia.Controls if (SelectionMode == DataGridSelectionMode.Extended && AnchorSlot != -1) { int anchorSlot = AnchorSlot; - ClearRowSelection(slot, setAnchorSlot: false); if (slot <= anchorSlot) { SetRowsSelection(slot, anchorSlot);