Browse Source

Merge pull request #6948 from dorufoaltin/fixes/datagrid-right-click-selection

Fix DataGrid SelectionChanged event not raised after 3 right clicks
pull/7337/head
Max Katz 5 years ago
committed by GitHub
parent
commit
2ca907a779
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/Avalonia.Controls.DataGrid/DataGrid.cs

1
src/Avalonia.Controls.DataGrid/DataGrid.cs

@ -5751,6 +5751,7 @@ namespace Avalonia.Controls
return true; return true;
} }
// Unselect everything except the row that was clicked on // Unselect everything except the row that was clicked on
_noSelectionChangeCount++;
try try
{ {
UpdateSelectionAndCurrency(columnIndex, slot, DataGridSelectionAction.SelectCurrent, scrollIntoView: false); UpdateSelectionAndCurrency(columnIndex, slot, DataGridSelectionAction.SelectCurrent, scrollIntoView: false);

Loading…
Cancel
Save