Skip to content

Commit 2ca907a

Browse files
authored
Merge pull request #6948 from dorufoaltin/fixes/datagrid-right-click-selection
Fix DataGrid SelectionChanged event not raised after 3 right clicks
2 parents c0425c2 + dda5a8a commit 2ca907a

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)