Skip to content

Commit 13d1ebd

Browse files
maxkatz6Lubomir Tetak
authored andcommitted
Merge pull request AvaloniaUI#6948 from dorufoaltin/fixes/datagrid-right-click-selection
Fix DataGrid SelectionChanged event not raised after 3 right clicks
1 parent 089fda0 commit 13d1ebd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Avalonia.Controls.DataGrid/DataGrid.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5751,6 +5751,7 @@ private bool UpdateStateOnMouseRightButtonDown(PointerPressedEventArgs pointerPr
57515751
return true;
57525752
}
57535753
// Unselect everything except the row that was clicked on
5754+
_noSelectionChangeCount++;
57545755
try
57555756
{
57565757
UpdateSelectionAndCurrency(columnIndex, slot, DataGridSelectionAction.SelectCurrent, scrollIntoView: false);

0 commit comments

Comments
 (0)