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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
src/Avalonia.Controls.DataGrid/DataGrid.cs
|
|
|
@ -5751,6 +5751,7 @@ namespace Avalonia.Controls |
|
|
|
return true; |
|
|
|
} |
|
|
|
// Unselect everything except the row that was clicked on
|
|
|
|
_noSelectionChangeCount++; |
|
|
|
try |
|
|
|
{ |
|
|
|
UpdateSelectionAndCurrency(columnIndex, slot, DataGridSelectionAction.SelectCurrent, scrollIntoView: false); |
|
|
|
|