Browse Source

Fix DataGrid' SelectedItems removing wrong item when DataGrid is grouping (#12874)

pull/12875/head
NLNet 3 years ago
parent
commit
001f75c4cd
  1. 2
      src/Avalonia.Controls.DataGrid/DataGridSelectedItemsCollection.cs

2
src/Avalonia.Controls.DataGrid/DataGridSelectedItemsCollection.cs

@ -155,7 +155,7 @@ namespace Avalonia.Controls
return;
}
OwningGrid.SetRowSelection(itemIndex, false /*isSelected*/, false /*setAnchorSlot*/);
OwningGrid.SetRowSelection(OwningGrid.SlotFromRowIndex(itemIndex), false /*isSelected*/, false /*setAnchorSlot*/);
}
public void RemoveAt(int index)

Loading…
Cancel
Save