Browse Source

Merge pull request #12875 from liwuqingxin/fixes/12874-datagrid-remove-selecteditem

Fix DataGrid' SelectedItems removing wrong item when DataGrid is grou…
pull/12979/head
Max Katz 3 years ago
committed by GitHub
parent
commit
c0f3769b7d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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