dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
7.06k stars 1.17k forks source link

Button Click on DataGridTemplateColumn is working on first click when DataGridComboBoxColumn cell is opened #9911

Open ManiAkash9 opened 1 week ago

ManiAkash9 commented 1 week ago

Description

Hi,

Problem Description: We are facing an issue with DataGridTemplateColumn and DataGridComboBoxColumn. When DataGridComboBoxColumn cell is in edit state and ComboBox items are visible, clicking on DataGridTemplateColumn cell did not trigger Button.Click event.

Video Reference

https://github.com/user-attachments/assets/8bd272c5-08bf-4598-b473-1906e0fb6199

Sample DataGrid_Demo.zip

Reproduction Steps

Step - 1 Click on any DataGridComboBoxColumn cell and enter into edit mode. Step - 2 When ComboBox items are visible in view click on any DataGridTemplateColumn cell.

Expected behavior

Click event should trigger on first click.

Actual behavior

Click event is triggered after another click on the same cell.

Regression?

No response

Known Workarounds

No response

Impact

No response

Configuration

We have noticed the issue in both Framework (4.8) and NetCore (net60) OS verison : Windows 11 Enterprise 22H2

Other information

No response

miloush commented 1 week ago

The click is spent on dismissing the combobox popup, that seems expected. The DataGrid is irrelevant here, it works the same without it.