Visual Studio 2022 - DataGridView, Cell Value changes during runtime without any command to do so

Dimos Dimosthenous 1 Reputation point
2022-12-08T18:40:03.35+00:00

Hello there,

I am playing around with Visual Studio 2022, where I connect my software to a local SQL database.  

On my first form, I have a DataGridView and a ComboBox, both bound to same table tblCompanies.
When I select a row from the DataGridView, the value of ComboBox changes as expected.
The strange behavior occurs when I select a value from the ComboBox, which changes all
the values of the DisplayMember with the one selected.
Any ideas on what might be whrong?

268659-normalsituation.jpg
268705-abnormalsituation.jpg

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,836 questions
{count} votes